Jak vycentrovat text (vodorovně a svisle) uvnitř bloku div v CSS?

Jak vycentrovat text (vodorovně a svisle) uvnitř bloku div v CSS?

Centrování textu vodorovně i svisle uvnitř bloku div je důležité pro vytváření vizuálně přitažlivých rozvržení. Různé metody, jako je flexbox, mřížka a transformace CSS, nabízejí řešení s výraznými výhodami a nevýhodami. Tento článek zkoumá tyto běžné přístupy k dosažení centrování textu v blocích div.

Obsah

Použití Flexboxu:

  • Nastavte nadřazený kontejner na displej: flex; To umožňuje použití a flexbox a změní nadřazený kontejner na ohebný kontejner.
  • Použití ospravedlnit-obsah: střed k vycentrování podřízeného prvku vodorovně v nadřazeném kontejneru.
  • Použití align-items: center pro svislé vystředění podřízeného prvku v nadřazeném kontejneru.

Příklad: Tento příklad ukazuje, jak vycentrovat text uvnitř prvku div pomocí vlastnosti flexbox of CSS .



HTML
      Vycentrujte text vodorovně a svisle uvnitř názvu bloku div> <style>body { text-align: center;  } .kontejner { výška: 300px;  šířka: 645px;  displej: flex;  justify-content: center;  align-items: center;  ohraničení: 2px plná černá;  } h1 { barva: zelená;  } styl> hlava> <body>  <div>  <h1>GeekforGeeksh1> div> tělo> html> </pre>  </code>  <p dir='ltr'>  <b>  <strong>Výstup: </strong>  </b>  </p>  <img src='//techcodeview.com/img/css-questions/74/how-center-text-horizontally.webp' alt=''> <h2 id='using-grid'> <span>Pomocí mřížky </span> </h2> <ul> <li value='1'>  <span>CSS mřížka </span>  <span>je další oblíbený nástroj pro rozvržení, který vám umožňuje vytvářet komplexní a flexibilní rozvržení založená na mřížce. </span> </li> <li value='2'> <span>Nastavte nadřazený kontejner na </span>   <b>  <strong>displej: mřížka </strong>  </b>   <span>. To umožňuje použití mřížky CSS a přemění nadřazený kontejner na kontejner mřížky. </span> </li> <li value='3'> <span>Použijte </span>  <b>  <strong>  </strong>  </b>   <b>  <strong>místo-položky: střed </strong>  </b>   <span>vlastnost vycentrovat podřízený prvek vodorovně i svisle v buňce mřížky. Tato vlastnost je zkratkou pro oba </span>  <b>  <strong>zarovnat-položky </strong>  </b>  <span>a </span>  <b>  <strong>zarovnat-položky </strong>  </b>  <span>. </span> </li> </ul> <p dir='ltr'>  <b>  <strong>Příklad: </strong>  </b>  <span>Tento příklad ukazuje, jak vycentrovat text uvnitř prvku div pomocí vlastnosti grid CSS. </span> </p>HTML <code>  <pre>  <html lang='en'>  <head>  <title>Vycentrujte text vodorovně a svisle uvnitř názvu bloku div> <style>.kontejner { výška: 300px;  šířka: 645px;  displej: mřížka;  místo-položky: centrum;  ohraničení: 2px plná černá;  } h1 { barva: zelená;  } styl> hlava> <body>  <div>  <h1>GeekforGeeksh1> div> tělo> html> </pre>  </code>  <p dir='ltr'>  <b>  <strong>Výstup: </strong>  </b>  </p>  <img src='//techcodeview.com/img/css-questions/74/how-center-text-horizontally.webp' alt=''> <h2 id='using-text-align'>  <b>  <strong>Použití zarovnání textu: </strong>  </b>  </h2> <ul> <li value='1'> <span>The </span>  <span>zarovnání textu </span>  <span>vlastnost je jednoduchý a přímočarý způsob, jak horizontálně vycentrovat text v rámci bloku div. </span> </li> <li value='2'> <span>Nastavte nadřazený kontejner na </span>  <b>  <strong>zarovnání textu: na střed. </strong>  </b>  <span>Toto vycentruje podřízený prvek vodorovně v rámci nadřazeného kontejneru. </span> </li> <li value='3'> <span>Použití </span>  <b>  <strong>výška řádku: </strong>  </b>  <span>pro svislé vystředění podřízeného prvku v nadřazeném kontejneru. Hodnota by se měla rovnat výšce nadřazeného kontejneru. </span> </li> </ul> <p dir='ltr'>  <b>  <strong>Příklad: </strong>  </b>  <span>Tento příklad ukazuje, jak vycentrovat text uvnitř prvku div pomocí zarovnání textu pomocí CSS. </span> </p>HTML <code>  <pre>  <html lang='en'>  <head>  <title>Vycentrujte text vodorovně a svisle uvnitř názvu bloku div> <style>.kontejner { výška: 300px;  šířka: 645px;  text-align: center;  line-height: 400px;  ohraničení: 2px plná černá;  } h1 { barva: zelená;  } styl> hlava> <body>  <div>  <h1>GeekforGeeksh1> div> tělo> html> </pre>  </code>  <p dir='ltr'>  <b>  <strong>Výstup: </strong>  </b>  </p>  <img src='//techcodeview.com/img/css-questions/74/how-center-text-horizontally.webp' alt=''> <h2 id='using-table-cell'> <span>Použití buňky tabulky </span> </h2> <ul> <li value='1'> <span>Nastavte nadřazený kontejner na </span>  <b>  <strong>displej: tabulka. </strong>  </b>  <span>To emuluje chování tabulky. </span> </li> <li value='2'> <span>Nastavte podřízený prvek na </span>  <b>  <strong>displej: tabulka-buňka </strong>  </b>  <span>. To emuluje chování buňky tabulky. </span> </li> <li value='3'> <span>Použití </span>  <b>  <strong>svisle zarovnat: na střed </strong>  </b>  <span>pro svislé vystředění podřízeného prvku v nadřazeném kontejneru. </span> </li> <li value='4'> <span>Použití </span>  <b>  <strong>zarovnání textu: na střed </strong>  </b>  <span>k vycentrování podřízeného prvku vodorovně v nadřazeném kontejneru. </span> </li> </ul> <p dir='ltr'>  <b>  <strong>Příklad: </strong>  </b>  <span>Tento příklad ukazuje, jak vycentrovat text uvnitř prvku div pomocí buňky textové tabulky CSS. </span> </p>HTML <code>  <pre>  <html lang='en'>  <head>  <title>Vycentrujte text vodorovně a svisle uvnitř názvu bloku div> <style>.kontejner { výška: 300px;  šířka: 645px;  displej: tabulka-buňka;  text-align: center;  vertikální zarovnat: střed;  ohraničení: 2px plná černá;  } h1 { barva: zelená;  } styl> hlava> <body>  <div>  <h1>GeekforGeeksh1> div> tělo> html> </pre>  </code>  <p dir='ltr'>  <b>  <strong>Výstup: </strong>  </b>  </p>  <img src='//techcodeview.com/img/css-questions/74/how-center-text-horizontally.webp' alt=''> <h2 id='using-transform-property'> <span>Použití vlastnosti Transform: </span> </h2> <ul> <li value='1'> <span>Nastavte nadřazený kontejner na </span>  <b>  <strong>poloha: relativní. </strong>  </b>  <span>To umožňuje použití absolutního umístění pro podřízený prvek. </span> </li> <li value='2'> <span>Nastavte podřízený prvek na </span>  <b>  <strong>pozice: absolutní. </strong>  </b>  <span>To umožňuje použití absolutního umístění pro podřízený prvek. </span> </li> <li value='3'> <span>Nastavte podřízený prvek </span>  <b>  <strong>horní </strong>  </b>  <span>a </span>  <b>  <strong>vlevo, odjet </strong>  </b>  <span>vlastnosti do </span>  <b>  <strong>padesáti% </strong>  </b>  <span>. Tím se podřízený prvek umístí do středu nadřazeného kontejneru. </span> </li> <li value='4'> <span>Použití </span>  <b>  <strong>transform: translate(-50%, -50%) </strong>  </b>  <span>pro vystředění podřízeného prvku vodorovně i svisle. </span> </li> </ul> <p dir='ltr'>  <b>  <strong>Příklad: </strong>  </b>  <span>Tento příklad ukazuje, jak vycentrovat text uvnitř prvku div pomocí vlastnosti transform CSS. </span> </p>HTML <code>  <pre>  <html lang='en'>  <head>  <title>Vycentrujte text vodorovně a svisle uvnitř názvu bloku div> <style>.kontejner { výška: 300px;  šířka: 645px;  poloha: relativní;  ohraničení: 2px plná černá;  } h1 { pozice: absolutní;  horní: 50 %;  barva: zelená;  vlevo: 50 %;  transform: translate(-50%, -50%);  } styl> hlava> <body>  <div>  <h1>GeekforGeeksh1> div> tělo> html> </pre>  </code>  <p dir='ltr'>  <b>  <strong>Výstup: </strong>  </b>  </p>  <img src='//techcodeview.com/img/css-questions/74/how-center-text-horizontally.webp' alt=''> <p dir='ltr'> <span>Stručně řečeno, zvolený přístup bude záviset na konkrétním případu použití, kompatibilitě s ostatními prvky a požadované estetice designu. Pomocí těchto metod je možné dosáhnout vycentrovaného textového bloku v různých rozvrženích a provedeních. </span> </p>  <br>  <br>
                     </div>

                     <!-- Article Footer with Prominent Share Buttons -->
                     <div class="px-6 md:px-8 py-8 bg-slate-50 dark:bg-slate-900/50 border-t border-slate-200 dark:border-slate-700/50">
                          <div class="flex flex-col sm:flex-row items-center justify-between gap-6">
                              <h4 class="text-base font-bold text-slate-700 dark:text-slate-300 uppercase tracking-wide flex items-center gap-2">
                                 <i class="fa fa-share-alt text-tech-500"> </i>
                                Podíl                              </h4>
                             
                              <div class="flex flex-wrap justify-center gap-3">
                                 <!-- Twitter -->
                                 <a href="https://twitter.com/intent/tweet?text=Jak vycentrovat text (vodorovně a svisle) uvnitř bloku div v CSS?&url=https://www.techcodeview.com/cs/how-center-text-horizontally" 
                                   target="_blank" rel="noopener noreferrer" 
                                   class="flex items-center gap-2 px-6 py-3 rounded-xl bg-[#1DA1F2]/10 text-[#1DA1F2] hover:bg-[#1DA1F2] hover:text-white transition-all duration-300 font-bold text-sm">
                                     <i class="fa fa-twitter text-lg"> </i>
                                     <span class="hidden sm:inline">Twitter </span>
                                 </a>

                                 <!-- Facebook -->
                                 <a href="https://www.facebook.com/sharer/sharer.php?u=https://www.techcodeview.com/cs/how-center-text-horizontally" 
                                   target="_blank" rel="noopener noreferrer"
                                   class="flex items-center gap-2 px-6 py-3 rounded-xl bg-[#4267B2]/10 text-[#4267B2] hover:bg-[#4267B2] hover:text-white transition-all duration-300 font-bold text-sm">
                                     <i class="fa fa-facebook text-lg"> </i>
                                     <span class="hidden sm:inline">Facebook </span>
                                 </a>
                                
                                 <!-- LinkedIn -->
                                 <a href="https://www.linkedin.com/shareArticle?mini=true&url=https://www.techcodeview.com/cs/how-center-text-horizontally&title=Jak vycentrovat text (vodorovně a svisle) uvnitř bloku div v CSS?" 
                                   target="_blank" rel="noopener noreferrer"
                                   class="flex items-center gap-2 px-6 py-3 rounded-xl bg-[#0077b5]/10 text-[#0077b5] hover:bg-[#0077b5] hover:text-white transition-all duration-300 font-bold text-sm">
                                     <i class="fa fa-linkedin text-lg"> </i>
                                     <span class="hidden sm:inline">LinkedIn </span>
                                 </a>
                              </div>
                          </div>
                     </div>
                </article><div class="rekl_placeholder"><script type="text/javascript">atOptions = {'key' : 'f2b09f3e7178b263531e10998e9a32fa','format' : 'iframe','height' : 250,'width' : 300,'params' : {}};</script><script type="text/javascript" src="//brunetteerdeplete.com/f2b09f3e7178b263531e10998e9a32fa/invoke.js"></script></div> </article>

                <!-- Comments Placeholder / Random Articles -->
                <div class="mt-8 bg-white dark:bg-slate-800 border border-slate-200 dark:border-slate-700 rounded-xl p-6 md:p-8 shadow-sm">
                     <h3 class="text-xl font-bold text-slate-900 dark:text-white mb-6 uppercase tracking-wide border-b border-slate-200 dark:border-slate-700 pb-2">
                        Mohlo By Se Vám Líbit                     </h3>
                     <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                         <div class="group">
                              <a href="/cs/what-is-windows-desktop" class="block aspect-video rounded-lg overflow-hidden bg-slate-200 dark:bg-slate-700 mb-3">
                                 <img loading="lazy" src="https://techcodeview.com/img/computer/10/what-is-windows-desktop.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Co je soubor Windows desktop.ini a mohu jej odstranit?" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500">
                              </a>
                              <h4 class="font-bold text-slate-900 dark:text-white leading-tight group-hover:text-tech-500 transition-colors">
                                 <a href="/cs/what-is-windows-desktop">Co je soubor Windows desktop.ini a mohu jej odstranit? </a>
                              </h4>
                         </div> <div class="group">
                              <a href="/cs/von-neumann-model" class="block aspect-video rounded-lg overflow-hidden bg-slate-200 dark:bg-slate-700 mb-3">
                                 <img loading="lazy" src="https://techcodeview.com/img/coa-tutorial/46/von-neumann-model.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Von Neumannův model" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500">
                              </a>
                              <h4 class="font-bold text-slate-900 dark:text-white leading-tight group-hover:text-tech-500 transition-colors">
                                 <a href="/cs/von-neumann-model">Von Neumannův model </a>
                              </h4>
                         </div>
                     </div>
                </div>
             </div>

             <!-- SECONDARY COLUMN (SIDEBAR) -->
             <!-- Aside Column -->
 <div class="lg:col-span-4 space-y-8">
	
	 <!-- Best Articles Widget -->
	 <div class="rounded-xl bg-white dark:bg-slate-800 border border-slate-200 dark:border-slate-700 p-6 shadow-sm">
		 <div class="mb-4 border-b border-slate-100 dark:border-slate-700 pb-2">
			 <h2 class="text-lg font-bold text-slate-900 dark:text-white uppercase tracking-wide flex items-center">
                 <span class="mr-2 h-2 w-2 rounded-full bg-tech-500"> </span>
                Nejlepší Články             </h2>
		 </div>
		
		 <!-- Owl Carousel Preserved Container -->
		 <div id="owl-carousel-3" class="owl-carousel owl-theme center-owl-nav">
			 <!-- ARTICLE -->
			 <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors">
				 <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700">
					 <a href="/cs/how-many-sides-does-pentagon-have-131328">
						 <img src="https://techcodeview.com/img/blog/23/how-many-sides-does-pentagon-have.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Kolik stran má Pentagon?" class="w-full h-full object-cover">
					 </a>
				 </div>
				 <div class="flex-1 min-w-0">
					 <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug">
                         <a href="/cs/how-many-sides-does-pentagon-have-131328" class="hover:text-tech-500 transition-colors line-clamp-3">Kolik stran má Pentagon? </a>
                     </h4>
				 </div>
			 </article><div class="rekl_placeholder"><script type="text/javascript">atOptions = {'key' : 'f2b09f3e7178b263531e10998e9a32fa','format' : 'iframe','height' : 250,'width' : 300,'params' : {}};</script><script type="text/javascript" src="//brunetteerdeplete.com/f2b09f3e7178b263531e10998e9a32fa/invoke.js"></script></div> </article>
			 <!-- /ARTICLE --> <!-- ARTICLE -->
			 <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors">
				 <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700">
					 <a href="/cs/when-do-sat-scores-come-out-131506">
						 <img src="https://techcodeview.com/img/blog/27/when-do-sat-scores-come-out.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Kdy vyjdou skóre SAT? Plán vydání skóre SAT" class="w-full h-full object-cover">
					 </a>
				 </div>
				 <div class="flex-1 min-w-0">
					 <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug">
                         <a href="/cs/when-do-sat-scores-come-out-131506" class="hover:text-tech-500 transition-colors line-clamp-3">Kdy vyjdou skóre SAT? Plán vydání skóre SAT </a>
                     </h4>
				 </div>
			 </article><div class="rekl_placeholder"><script type="text/javascript">atOptions = {'key' : 'f2b09f3e7178b263531e10998e9a32fa','format' : 'iframe','height' : 250,'width' : 300,'params' : {}};</script><script type="text/javascript" src="//brunetteerdeplete.com/f2b09f3e7178b263531e10998e9a32fa/invoke.js"></script></div> </article>
			 <!-- /ARTICLE --> <!-- ARTICLE -->
			 <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors">
				 <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700">
					 <a href="/cs/how-delete-filtered-rows-excel">
						 <img src="https://techcodeview.com/img/excel-functions/66/how-delete-filtered-rows-excel.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Jak odstranit filtrované řádky v Excelu" class="w-full h-full object-cover">
					 </a>
				 </div>
				 <div class="flex-1 min-w-0">
					 <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug">
                         <a href="/cs/how-delete-filtered-rows-excel" class="hover:text-tech-500 transition-colors line-clamp-3">Jak odstranit filtrované řádky v Excelu </a>
                     </h4>
				 </div>
			 </article><div class="rekl_placeholder"><script type="text/javascript">atOptions = {'key' : 'f2b09f3e7178b263531e10998e9a32fa','format' : 'iframe','height' : 250,'width' : 300,'params' : {}};</script><script type="text/javascript" src="//brunetteerdeplete.com/f2b09f3e7178b263531e10998e9a32fa/invoke.js"></script></div> </article>
			 <!-- /ARTICLE --> <!-- ARTICLE -->
			 <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors">
				 <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700">
					 <a href="/cs/what-is-cell-theory-1311568">
						 <img src="https://techcodeview.com/img/blog/30/what-is-cell-theory.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Co je buněčná teorie? Proč je to důležité?" class="w-full h-full object-cover">
					 </a>
				 </div>
				 <div class="flex-1 min-w-0">
					 <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug">
                         <a href="/cs/what-is-cell-theory-1311568" class="hover:text-tech-500 transition-colors line-clamp-3">Co je buněčná teorie? Proč je to důležité? </a>
                     </h4>
				 </div>
			 </article><div class="rekl_placeholder"><script type="text/javascript">atOptions = {'key' : 'f2b09f3e7178b263531e10998e9a32fa','format' : 'iframe','height' : 250,'width' : 300,'params' : {}};</script><script type="text/javascript" src="//brunetteerdeplete.com/f2b09f3e7178b263531e10998e9a32fa/invoke.js"></script></div> </article>
			 <!-- /ARTICLE --> <!-- ARTICLE -->
			 <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors">
				 <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700">
					 <a href="/cs/how-create-file-cmd">
						 <img src="https://techcodeview.com/img/how/89/how-create-file-cmd.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Jak vytvořit soubor v CMD?" class="w-full h-full object-cover">
					 </a>
				 </div>
				 <div class="flex-1 min-w-0">
					 <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug">
                         <a href="/cs/how-create-file-cmd" class="hover:text-tech-500 transition-colors line-clamp-3">Jak vytvořit soubor v CMD? </a>
                     </h4>
				 </div>
			 </article><div class="rekl_placeholder"><script type="text/javascript">atOptions = {'key' : 'f2b09f3e7178b263531e10998e9a32fa','format' : 'iframe','height' : 250,'width' : 300,'params' : {}};</script><script type="text/javascript" src="//brunetteerdeplete.com/f2b09f3e7178b263531e10998e9a32fa/invoke.js"></script></div> </article>
			 <!-- /ARTICLE --> <!-- ARTICLE -->
			 <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors">
				 <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700">
					 <a href="/cs/ultimate-college-majors-list-131556">
						 <img src="https://techcodeview.com/img/blog/57/ultimate-college-majors-list.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="The Ultimate College Majors List: 295 stupňů ke zvážení" class="w-full h-full object-cover">
					 </a>
				 </div>
				 <div class="flex-1 min-w-0">
					 <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug">
                         <a href="/cs/ultimate-college-majors-list-131556" class="hover:text-tech-500 transition-colors line-clamp-3">The Ultimate College Majors List: 295 stupňů ke zvážení </a>
                     </h4>
				 </div>
			 </article><div class="rekl_placeholder"><script type="text/javascript">atOptions = {'key' : 'f2b09f3e7178b263531e10998e9a32fa','format' : 'iframe','height' : 250,'width' : 300,'params' : {}};</script><script type="text/javascript" src="//brunetteerdeplete.com/f2b09f3e7178b263531e10998e9a32fa/invoke.js"></script></div> </article>
			 <!-- /ARTICLE --> <!-- ARTICLE -->
			 <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors">
				 <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700">
					 <a href="/cs/java-oops-concepts">
						 <img src="https://techcodeview.com/img/java-object-class/83/java-oops-concepts.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Java OOPs koncepty" class="w-full h-full object-cover">
					 </a>
				 </div>
				 <div class="flex-1 min-w-0">
					 <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug">
                         <a href="/cs/java-oops-concepts" class="hover:text-tech-500 transition-colors line-clamp-3">Java OOPs koncepty </a>
                     </h4>
				 </div>
			 </article><div class="rekl_placeholder"><script type="text/javascript">atOptions = {'key' : 'f2b09f3e7178b263531e10998e9a32fa','format' : 'iframe','height' : 250,'width' : 300,'params' : {}};</script><script type="text/javascript" src="//brunetteerdeplete.com/f2b09f3e7178b263531e10998e9a32fa/invoke.js"></script></div> </article>
			 <!-- /ARTICLE --> <!-- ARTICLE -->
			 <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors">
				 <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700">
					 <a href="/cs/reset-a-lost-linux-administrative-password-and-explanation">
						 <img src="https://techcodeview.com/img/linux-unix/69/reset-a-lost-linux-administrative-password-and-explanation.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Obnovte ztracené heslo správce systému Linux a vysvětlení" class="w-full h-full object-cover">
					 </a>
				 </div>
				 <div class="flex-1 min-w-0">
					 <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug">
                         <a href="/cs/reset-a-lost-linux-administrative-password-and-explanation" class="hover:text-tech-500 transition-colors line-clamp-3">Obnovte ztracené heslo správce systému Linux a vysvětlení </a>
                     </h4>
				 </div>
			 </article><div class="rekl_placeholder"><script type="text/javascript">atOptions = {'key' : 'f2b09f3e7178b263531e10998e9a32fa','format' : 'iframe','height' : 250,'width' : 300,'params' : {}};</script><script type="text/javascript" src="//brunetteerdeplete.com/f2b09f3e7178b263531e10998e9a32fa/invoke.js"></script></div> </article>
			 <!-- /ARTICLE --> <!-- ARTICLE -->
			 <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors">
				 <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700">
					 <a href="/cs/python-sending-email-using-smtp">
						 <img src="https://techcodeview.com/img/python-tutorial/14/python-sending-email-using-smtp.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Python Odesílání e-mailů pomocí SMTP" class="w-full h-full object-cover">
					 </a>
				 </div>
				 <div class="flex-1 min-w-0">
					 <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug">
                         <a href="/cs/python-sending-email-using-smtp" class="hover:text-tech-500 transition-colors line-clamp-3">Python Odesílání e-mailů pomocí SMTP </a>
                     </h4>
				 </div>
			 </article><div class="rekl_placeholder"><script type="text/javascript">atOptions = {'key' : 'f2b09f3e7178b263531e10998e9a32fa','format' : 'iframe','height' : 250,'width' : 300,'params' : {}};</script><script type="text/javascript" src="//brunetteerdeplete.com/f2b09f3e7178b263531e10998e9a32fa/invoke.js"></script></div> </article>
			 <!-- /ARTICLE --> <!-- ARTICLE -->
			 <article class="flex items-start gap-4 p-2 hover:bg-slate-50 dark:hover:bg-slate-700/50 rounded-lg transition-colors">
				 <div class="w-20 h-20 shrink-0 overflow-hidden rounded-md bg-slate-200 dark:bg-slate-700">
					 <a href="/cs/virgo-moon-sign-what-does-it-mean-131704">
						 <img src="https://techcodeview.com/img/blog/49/virgo-moon-sign-what-does-it-mean.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Měsíční znamení Panny: Co to znamená?" class="w-full h-full object-cover">
					 </a>
				 </div>
				 <div class="flex-1 min-w-0">
					 <h4 class="text-sm font-semibold text-slate-800 dark:text-slate-200 leading-snug">
                         <a href="/cs/virgo-moon-sign-what-does-it-mean-131704" class="hover:text-tech-500 transition-colors line-clamp-3">Měsíční znamení Panny: Co to znamená? </a>
                     </h4>
				 </div>
			 </article><div class="rekl_placeholder"><script type="text/javascript">atOptions = {'key' : 'f2b09f3e7178b263531e10998e9a32fa','format' : 'iframe','height' : 250,'width' : 300,'params' : {}};</script><script type="text/javascript" src="//brunetteerdeplete.com/f2b09f3e7178b263531e10998e9a32fa/invoke.js"></script></div> </article>
			 <!-- /ARTICLE -->
		 </div>
		

         <!-- Categories -->
		 <div class="mt-8 mb-4 border-b border-slate-100 dark:border-slate-700 pb-2">
			 <h2 class="text-lg font-bold text-slate-900 dark:text-white uppercase tracking-wide">Kategorie </h2>
		 </div>
		 <div class="flex flex-wrap gap-2">
             <a href="/cs/blog/" class="inline-block px-3 py-1 bg-slate-100 dark:bg-slate-700 text-xs font-medium text-slate-600 dark:text-slate-300 rounded-full hover:bg-tech-500 hover:text-white transition-colors">
                Blog
             </a> <a href="/cs/java-conversion/" class="inline-block px-3 py-1 bg-slate-100 dark:bg-slate-700 text-xs font-medium text-slate-600 dark:text-slate-300 rounded-full hover:bg-tech-500 hover:text-white transition-colors">
                Java Konverze
             </a> <a href="/cs/maths/" class="inline-block px-3 py-1 bg-slate-100 dark:bg-slate-700 text-xs font-medium text-slate-600 dark:text-slate-300 rounded-full hover:bg-tech-500 hover:text-white transition-colors">
                Matematika
             </a> <a href="/cs/java-collections/" class="inline-block px-3 py-1 bg-slate-100 dark:bg-slate-700 text-xs font-medium text-slate-600 dark:text-slate-300 rounded-full hover:bg-tech-500 hover:text-white transition-colors">
                Kolekce Java
             </a> <a href="/cs/differences/" class="inline-block px-3 py-1 bg-slate-100 dark:bg-slate-700 text-xs font-medium text-slate-600 dark:text-slate-300 rounded-full hover:bg-tech-500 hover:text-white transition-colors">
                Rozdíly
             </a> <a href="/cs/java-string/" class="inline-block px-3 py-1 bg-slate-100 dark:bg-slate-700 text-xs font-medium text-slate-600 dark:text-slate-300 rounded-full hover:bg-tech-500 hover:text-white transition-colors">
                Řetězec Java
             </a>
         </div>

         <!-- Interesting Articles Widget -->
		 <div class="mt-8">
			 <div class="mb-4 border-b border-slate-100 dark:border-slate-700 pb-2">
				 <h2 class="text-lg font-bold text-slate-900 dark:text-white uppercase tracking-wide">Zajímavé Články </h2>
			 </div>
			
			 <div id="owl-carousel-4" class="owl-carousel owl-theme">
				 <!-- ARTICLE -->
				 <article class="relative aspect-video rounded-lg overflow-hidden group mb-2">
					 <div class="absolute inset-0">
						 <img src="https://techcodeview.com/img/advice-teachers/35/developing-digital-literacy-skills.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Rozvoj digitální gramotnosti" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500">
                         <div class="absolute inset-0 bg-gradient-to-t from-black/80 to-transparent"> </div>
					 </div>
					 <div class="absolute bottom-0 left-0 p-4">
						 <div class="text-xs text-tech-400 font-bold mb-1"> <a href="/cs/advice-teachers/">Rady Pro Učitele </a> </div>
						 <h4 class="text-sm font-bold text-white leading-tight"> <a href="/cs/developing-digital-literacy-skills-242110">Rozvoj digitální gramotnosti </a> </h4>
					 </div>
				 </article><div class="rekl_placeholder"><script type="text/javascript">atOptions = {'key' : 'f2b09f3e7178b263531e10998e9a32fa','format' : 'iframe','height' : 250,'width' : 300,'params' : {}};</script><script type="text/javascript" src="//brunetteerdeplete.com/f2b09f3e7178b263531e10998e9a32fa/invoke.js"></script></div> </article>
				 <!-- /ARTICLE --> <!-- ARTICLE -->
				 <article class="relative aspect-video rounded-lg overflow-hidden group mb-2">
					 <div class="absolute inset-0">
						 <img src="https://techcodeview.com/img/blog/82/emily-dickinsons-because-i-could-not-stop.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Analýza Emily Dickinsonové Protože jsem se nemohl zastavit kvůli smrti" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500">
                         <div class="absolute inset-0 bg-gradient-to-t from-black/80 to-transparent"> </div>
					 </div>
					 <div class="absolute bottom-0 left-0 p-4">
						 <div class="text-xs text-tech-400 font-bold mb-1"> <a href="/cs/blog/">Blog </a> </div>
						 <h4 class="text-sm font-bold text-white leading-tight"> <a href="/cs/emily-dickinsons-because-i-could-not-stop-1311038">Analýza Emily Dickinsonové Protože jsem se nemohl zastavit kvůli smrti </a> </h4>
					 </div>
				 </article><div class="rekl_placeholder"><script type="text/javascript">atOptions = {'key' : 'f2b09f3e7178b263531e10998e9a32fa','format' : 'iframe','height' : 250,'width' : 300,'params' : {}};</script><script type="text/javascript" src="//brunetteerdeplete.com/f2b09f3e7178b263531e10998e9a32fa/invoke.js"></script></div> </article>
				 <!-- /ARTICLE --> <!-- ARTICLE -->
				 <article class="relative aspect-video rounded-lg overflow-hidden group mb-2">
					 <div class="absolute inset-0">
						 <img src="https://techcodeview.com/img/java-functions/81/string-int-java.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Řetězec na int v Javě" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500">
                         <div class="absolute inset-0 bg-gradient-to-t from-black/80 to-transparent"> </div>
					 </div>
					 <div class="absolute bottom-0 left-0 p-4">
						 <div class="text-xs text-tech-400 font-bold mb-1"> <a href="/cs/java-functions/">Java-Funkce </a> </div>
						 <h4 class="text-sm font-bold text-white leading-tight"> <a href="/cs/string-int-java">Řetězec na int v Javě </a> </h4>
					 </div>
				 </article><div class="rekl_placeholder"><script type="text/javascript">atOptions = {'key' : 'f2b09f3e7178b263531e10998e9a32fa','format' : 'iframe','height' : 250,'width' : 300,'params' : {}};</script><script type="text/javascript" src="//brunetteerdeplete.com/f2b09f3e7178b263531e10998e9a32fa/invoke.js"></script></div> </article>
				 <!-- /ARTICLE --> <!-- ARTICLE -->
				 <article class="relative aspect-video rounded-lg overflow-hidden group mb-2">
					 <div class="absolute inset-0">
						 <img src="https://techcodeview.com/img/get-informed/37/explained-what-is-meowchat.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Vysvětleno – Co je MeowChat?" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500">
                         <div class="absolute inset-0 bg-gradient-to-t from-black/80 to-transparent"> </div>
					 </div>
					 <div class="absolute bottom-0 left-0 p-4">
						 <div class="text-xs text-tech-400 font-bold mb-1"> <a href="/cs/get-informed/">Informujte Se </a> </div>
						 <h4 class="text-sm font-bold text-white leading-tight"> <a href="/cs/explained-what-is-meowchat-24258">Vysvětleno – Co je MeowChat? </a> </h4>
					 </div>
				 </article><div class="rekl_placeholder"><script type="text/javascript">atOptions = {'key' : 'f2b09f3e7178b263531e10998e9a32fa','format' : 'iframe','height' : 250,'width' : 300,'params' : {}};</script><script type="text/javascript" src="//brunetteerdeplete.com/f2b09f3e7178b263531e10998e9a32fa/invoke.js"></script></div> </article>
				 <!-- /ARTICLE --> <!-- ARTICLE -->
				 <article class="relative aspect-video rounded-lg overflow-hidden group mb-2">
					 <div class="absolute inset-0">
						 <img src="https://techcodeview.com/img/computer/48/what-is-lan-port.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Co je to port LAN?" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500">
                         <div class="absolute inset-0 bg-gradient-to-t from-black/80 to-transparent"> </div>
					 </div>
					 <div class="absolute bottom-0 left-0 p-4">
						 <div class="text-xs text-tech-400 font-bold mb-1"> <a href="/cs/computer/">Počítač </a> </div>
						 <h4 class="text-sm font-bold text-white leading-tight"> <a href="/cs/what-is-lan-port">Co je to port LAN? </a> </h4>
					 </div>
				 </article><div class="rekl_placeholder"><script type="text/javascript">atOptions = {'key' : 'f2b09f3e7178b263531e10998e9a32fa','format' : 'iframe','height' : 250,'width' : 300,'params' : {}};</script><script type="text/javascript" src="//brunetteerdeplete.com/f2b09f3e7178b263531e10998e9a32fa/invoke.js"></script></div> </article>
				 <!-- /ARTICLE --> <!-- ARTICLE -->
				 <article class="relative aspect-video rounded-lg overflow-hidden group mb-2">
					 <div class="absolute inset-0">
						 <img src="https://techcodeview.com/img/misc/17/sql-check-constraint.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="SQL | CHECK Omezení" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500">
                         <div class="absolute inset-0 bg-gradient-to-t from-black/80 to-transparent"> </div>
					 </div>
					 <div class="absolute bottom-0 left-0 p-4">
						 <div class="text-xs text-tech-400 font-bold mb-1"> <a href="/cs/misc/">Různé </a> </div>
						 <h4 class="text-sm font-bold text-white leading-tight"> <a href="/cs/sql-check-constraint">SQL | CHECK Omezení </a> </h4>
					 </div>
				 </article><div class="rekl_placeholder"><script type="text/javascript">atOptions = {'key' : 'f2b09f3e7178b263531e10998e9a32fa','format' : 'iframe','height' : 250,'width' : 300,'params' : {}};</script><script type="text/javascript" src="//brunetteerdeplete.com/f2b09f3e7178b263531e10998e9a32fa/invoke.js"></script></div> </article>
				 <!-- /ARTICLE -->
			 </div>
		 </div>
	 </div>
 </div>
 <!-- /Aside Column -->         </div>
        </div>
     </div>

 <footer class="site-footer">
         <div class="container">
             <span class="footer-links">
                Copyright ©2026 Všechna Práva Vyhrazena | 
                 <a href="//www.techcodeview.com/nl/">techcodeview.com </a> | 
                 <a href="/disclaimer" rel="nofollow noopener noreferrer" target="_blank">Vyloučení Odpovědnosti </a> | 
                 <a href="/about-us" rel="nofollow noopener noreferrer" target="_blank">O Nás </a> | 
                 <a href="/privacy-policy" rel="nofollow noopener noreferrer" target="_blank">Zásady Ochrany Osobních Údajů </a> 
             </span>
         </div>
     </footer>
 
     <script type="text/javascript" src="https://techcodeview.com/template/assets/plugins/jquery-1.11.3.min.js"> </script>
     <script type="text/javascript" src="https://techcodeview.com/template/assets/plugins/bootstrap/js/bootstrap.min.js"> </script>    
     <script type="text/javascript" src="https://techcodeview.com/template/assets/js/main.js"> </script>     
	 <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/highlight.min.js"> </script>
	 <script>
    !function(){"use strict";let t=document.createElement("button");t.id="toTopBtn",t.innerHTML="↑";let e=`
        #toTopBtn {
            position: fixed; bottom: 25px; right: 25px; z-index: 9999; opacity: 0; visibility: hidden; background-color: #0ea5e9; color: white; border: none; border-radius: 8px; width: 50px; height: 50px; font-size: 24px; cursor: pointer; transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
        }
        #toTopBtn:hover { background-color: #0284c7; }
    `,i=document.createElement("style");i.type="text/css",i.innerText=e,document.head.appendChild(i),document.body.appendChild(t),window.addEventListener("scroll",()=>{let e=window.scrollY||document.documentElement.scrollTop;e>300?(t.style.opacity="1",t.style.visibility="visible"):(t.style.opacity="0",t.style.visibility="hidden")}),t.addEventListener("click",()=>{window.scrollTo({top:0,behavior:"smooth"})})}();
     </script>
 </body>
 </html>