Kaip centruoti tekstą (horizontaliai ir vertikaliai) div bloke CSS?

Kaip centruoti tekstą (horizontaliai ir vertikaliai) div bloke CSS?

Teksto centravimas tiek horizontaliai, tiek vertikaliai div bloko viduje yra svarbus kuriant vizualiai patrauklius maketus. Įvairūs metodai, tokie kaip „flexbox“, tinklelis ir CSS transformacijos, siūlo sprendimus, turinčius skirtingus privalumus ir trūkumus. Šiame straipsnyje nagrinėjami šie bendri būdai, kaip pasiekti teksto centravimą div blokuose.

Turinys

„Flexbox“ naudojimas:

  • Nustatykite pirminį sudėtinį rodinį į ekranas: lankstus; Tai leidžia naudoti a flexbox ir pagrindinį konteinerį paverčia lanksčiu konteineriu.
  • Naudokite pateisinti-turinys: centras kad antrinis elementas būtų centre horizontaliai pirminiame konteineryje.
  • Naudokite lygiuoti elementus: centre centruoti antrinį elementą vertikaliai pirminiame konteineryje.

Pavyzdys: Šiame pavyzdyje parodyta, kaip centruoti tekstą div viduje naudojant flexbox ypatybę CSS .



HTML
      Centruokite tekstą horizontaliai ir vertikaliai div bloko pavadinime> <style>body { text-align: centre;  } .container { aukštis: 300 taškų;  plotis: 645px;  ekranas: lankstus;  pateisinti-turinys: centras;  lygiuoti elementus: centre;  kraštinė: 2 pikseliai vientisai juodi;  } h1 { spalva: žalia;  } style> head> <body>  <div>  <h1>GeekforGeeksh1> div> body> html> </pre>  </code>  <p dir='ltr'>  <b>  <strong>Išvestis: </strong>  </b>  </p>  <img src='//techcodeview.com/img/css-questions/74/how-center-text-horizontally.webp' alt=''> <h2 id='using-grid'> <span>Naudojant tinklelį </span> </h2> <ul> <li value='1'>  <span>CSS tinklelis </span>  <span>yra dar vienas populiarus maketavimo įrankis, leidžiantis kurti sudėtingus ir lanksčius tinklelio maketus. </span> </li> <li value='2'> <span>Nustatykite pirminį sudėtinį rodinį į </span>   <b>  <strong>ekranas: tinklelis </strong>  </b>   <span>. Tai įgalina naudoti CSS tinklelį ir paverčia pagrindinį konteinerį tinklelio konteineriu. </span> </li> <li value='3'> <span>Naudoti </span>  <b>  <strong>  </strong>  </b>   <b>  <strong>vietos elementai: centras </strong>  </b>   <span>savybė centruoti antrinį elementą tiek horizontaliai, tiek vertikaliai tinklelio langelyje. Ši savybė yra abiejų santrumpa </span>  <b>  <strong>pateisinti-elementai </strong>  </b>  <span>ir </span>  <b>  <strong>išlyginti elementus </strong>  </b>  <span>. </span> </li> </ul> <p dir='ltr'>  <b>  <strong>Pavyzdys: </strong>  </b>  <span>Šiame pavyzdyje parodyta, kaip centruoti tekstą div viduje naudojant CSS tinklelio ypatybę. </span> </p>HTML <code>  <pre>  <html lang='en'>  <head>  <title>Centruokite tekstą horizontaliai ir vertikaliai div bloko pavadinime> <style>.container { aukštis: 300 taškų;  plotis: 645px;  ekranas: tinklelis;  vietos daiktai: centras;  kraštinė: 2px vientisa juoda;  } h1 { spalva: žalia;  } style> head> <body>  <div>  <h1>GeekforGeeksh1> div> body> html> </pre>  </code>  <p dir='ltr'>  <b>  <strong>Išvestis: </strong>  </b>  </p>  <img src='//techcodeview.com/img/css-questions/74/how-center-text-horizontally.webp' alt=''> <h2 id='using-text-align'>  <b>  <strong>Teksto lygiavimo naudojimas: </strong>  </b>  </h2> <ul> <li value='1'> <span>The </span>  <span>teksto lygiavimas </span>  <span>nuosavybė yra paprastas ir nesudėtingas būdas centruoti tekstą horizontaliai div bloke. </span> </li> <li value='2'> <span>Nustatykite pirminį sudėtinį rodinį į </span>  <b>  <strong>teksto lygiavimas: centre. </strong>  </b>  <span>Tai centruoja antrinį elementą horizontaliai pirminiame konteineryje. </span> </li> <li value='3'> <span>Naudokite </span>  <b>  <strong>linijos aukštis: </strong>  </b>  <span>centruoti antrinį elementą vertikaliai pirminiame konteineryje. Reikšmė turi būti lygi pirminio sudėtinio rodinio aukščiui. </span> </li> </ul> <p dir='ltr'>  <b>  <strong>Pavyzdys: </strong>  </b>  <span>Šiame pavyzdyje parodyta, kaip centruoti tekstą div viduje, naudojant CSS teksto lygiavimą. </span> </p>HTML <code>  <pre>  <html lang='en'>  <head>  <title>Centruokite tekstą horizontaliai ir vertikaliai div bloko pavadinime> <style>.container { aukštis: 300 taškų;  plotis: 645px;  teksto lygiavimas: centre;  eilutės aukštis: 400 pikselių;  kraštinė: 2px vientisa juoda;  } h1 { spalva: žalia;  } style> head> <body>  <div>  <h1>GeekforGeeksh1> div> body> html> </pre>  </code>  <p dir='ltr'>  <b>  <strong>Išvestis: </strong>  </b>  </p>  <img src='//techcodeview.com/img/css-questions/74/how-center-text-horizontally.webp' alt=''> <h2 id='using-table-cell'> <span>Naudojant lentelės langelį </span> </h2> <ul> <li value='1'> <span>Nustatykite pirminį sudėtinį rodinį į </span>  <b>  <strong>ekranas: lentelė. </strong>  </b>  <span>Tai imituoja lentelės elgesį. </span> </li> <li value='2'> <span>Nustatykite antrinį elementą į </span>  <b>  <strong>ekranas: lentelės langelis </strong>  </b>  <span>. Tai imituoja lentelės langelio elgesį. </span> </li> <li value='3'> <span>Naudokite </span>  <b>  <strong>vertikalus lygiavimas: viduryje </strong>  </b>  <span>centruoti antrinį elementą vertikaliai pirminiame konteineryje. </span> </li> <li value='4'> <span>Naudokite </span>  <b>  <strong>teksto lygiavimas: centre </strong>  </b>  <span>kad antrinis elementas būtų centre horizontaliai pirminiame konteineryje. </span> </li> </ul> <p dir='ltr'>  <b>  <strong>Pavyzdys: </strong>  </b>  <span>Šiame pavyzdyje parodyta, kaip centruoti tekstą div viduje, naudojant CSS teksto lentelės langelį. </span> </p>HTML <code>  <pre>  <html lang='en'>  <head>  <title>Centruokite tekstą horizontaliai ir vertikaliai div bloko pavadinime> <style>.container { aukštis: 300 taškų;  plotis: 645px;  ekranas: lentelės langelis;  teksto lygiavimas: centre;  vertikalus lygiavimas: vidurys;  kraštinė: 2 pikseliai vientisai juodi;  } h1 { spalva: žalia;  } style> head> <body>  <div>  <h1>GeekforGeeksh1> div> body> html> </pre>  </code>  <p dir='ltr'>  <b>  <strong>Išvestis: </strong>  </b>  </p>  <img src='//techcodeview.com/img/css-questions/74/how-center-text-horizontally.webp' alt=''> <h2 id='using-transform-property'> <span>Transformavimo nuosavybės naudojimas: </span> </h2> <ul> <li value='1'> <span>Nustatykite pirminį sudėtinį rodinį į </span>  <b>  <strong>padėtis: santykinė. </strong>  </b>  <span>Tai leidžia naudoti absoliučią antrinio elemento padėties nustatymą. </span> </li> <li value='2'> <span>Nustatykite antrinį elementą į </span>  <b>  <strong>padėtis: absoliuti. </strong>  </b>  <span>Tai leidžia naudoti absoliučią antrinio elemento padėties nustatymą. </span> </li> <li value='3'> <span>Nustatykite antrinį elementą </span>  <b>  <strong>viršuje </strong>  </b>  <span>ir </span>  <b>  <strong>paliko </strong>  </b>  <span>savybės į </span>  <b>  <strong>penkiasdešimt % </strong>  </b>  <span>. Taip antrinis elementas nustatomas pirminio sudėtinio rodinio centre. </span> </li> <li value='4'> <span>Naudokite </span>  <b>  <strong>transformuoti: išversti (-50%, -50%) </strong>  </b>  <span>centruoti antrinį elementą tiek horizontaliai, tiek vertikaliai. </span> </li> </ul> <p dir='ltr'>  <b>  <strong>Pavyzdys: </strong>  </b>  <span>Šiame pavyzdyje parodyta, kaip centruoti tekstą div viduje, naudojant CSS transformavimo ypatybę. </span> </p>HTML <code>  <pre>  <html lang='en'>  <head>  <title>Centruokite tekstą horizontaliai ir vertikaliai div bloko pavadinime> <style>.container { aukštis: 300 taškų;  plotis: 645px;  padėtis: santykinė;  kraštinė: 2px vientisa juoda;  } h1 { pozicija: absoliuti;  viršuje: 50%;  spalva: žalia;  liko: 50%;  transformuoti: išversti(-50%, -50%);  } style> head> <body>  <div>  <h1>GeekforGeeksh1> div> body> html> </pre>  </code>  <p dir='ltr'>  <b>  <strong>Išvestis: </strong>  </b>  </p>  <img src='//techcodeview.com/img/css-questions/74/how-center-text-horizontally.webp' alt=''> <p dir='ltr'> <span>Apibendrinant galima pasakyti, kad pasirinktas požiūris priklausys nuo konkretaus naudojimo atvejo, suderinamumo su kitais elementais ir pageidaujamos dizaino estetikos. Taikant šiuos metodus galima pasiekti centre esantį teksto bloką įvairiuose maketuose ir dizainuose. </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>
                                Bendrinti                              </h4>
                             
                              <div class="flex flex-wrap justify-center gap-3">
                                 <!-- Twitter -->
                                 <a href="https://twitter.com/intent/tweet?text=Kaip centruoti tekstą (horizontaliai ir vertikaliai) div bloke CSS?&url=https://www.techcodeview.com/lt/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/lt/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/lt/how-center-text-horizontally&title=Kaip centruoti tekstą (horizontaliai ir vertikaliai) div bloke 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">
                        Jums Gali Patikti                     </h3>
                     <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                         <div class="group">
                              <a href="/lt/is-act-easier-than-sat-131900" 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/blog/72/is-act-easier-than-sat.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Ar ACT lengviau nei SAT?" 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="/lt/is-act-easier-than-sat-131900">Ar ACT lengviau nei SAT? </a>
                              </h4>
                         </div> <div class="group">
                              <a href="/lt/multithreading-models-operating-system" 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/operating-system/43/multithreading-models-operating-system.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Kelių sriegių modeliai operacinėje sistemoje" 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="/lt/multithreading-models-operating-system">Kelių sriegių modeliai operacinėje sistemoje </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>
                Top Straipsniai             </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="/lt/insertion-sort-algorithm">
						 <img src="https://techcodeview.com/img/ds-tutorial/03/insertion-sort-algorithm.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Įterpimo rūšiavimo algoritmas" 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="/lt/insertion-sort-algorithm" class="hover:text-tech-500 transition-colors line-clamp-3">Įterpimo rūšiavimo algoritmas </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="/lt/backtracking-algorithm">
						 <img src="https://techcodeview.com/img/algorithms-backtracking/27/backtracking-algorithm.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Atgalinis algoritmas" 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="/lt/backtracking-algorithm" class="hover:text-tech-500 transition-colors line-clamp-3">Atgalinis algoritmas </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="/lt/how-find-length-list-python">
						 <img src="https://techcodeview.com/img/python/18/how-find-length-list-python.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Kaip rasti sąrašo ilgį Python" 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="/lt/how-find-length-list-python" class="hover:text-tech-500 transition-colors line-clamp-3">Kaip rasti sąrašo ilgį Python </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="/lt/explained-what-is-houseparty-24250">
						 <img src="https://techcodeview.com/img/get-informed/93/explained-what-is-houseparty.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Paaiškinta: kas yra Houseparty?" 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="/lt/explained-what-is-houseparty-24250" class="hover:text-tech-500 transition-colors line-clamp-3">Paaiškinta: kas yra Houseparty? </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="/lt/working-with-excel-files-using-pandas">
						 <img src="https://techcodeview.com/img/python-pandas/47/working-with-excel-files-using-pandas.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Darbas su Excel failais naudojant Pandas" 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="/lt/working-with-excel-files-using-pandas" class="hover:text-tech-500 transition-colors line-clamp-3">Darbas su Excel failais naudojant Pandas </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="/lt/how-align-image-html">
						 <img src="https://techcodeview.com/img/html-tutorial/33/how-align-image-html.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Kaip suderinti vaizdą HTML" 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="/lt/how-align-image-html" class="hover:text-tech-500 transition-colors line-clamp-3">Kaip suderinti vaizdą HTML </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="/lt/types-network-topology">
						 <img src="https://techcodeview.com/img/data-link-layer/45/types-network-topology.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Tinklo topologijos tipai" 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="/lt/types-network-topology" class="hover:text-tech-500 transition-colors line-clamp-3">Tinklo topologijos tipai </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="/lt/what-is-an-unsubsidized-loan-1311490">
						 <img src="https://techcodeview.com/img/blog/01/what-is-an-unsubsidized-loan.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Kas yra nesubsidijuota paskola? Apibrėžimas ir paaiškinimas" 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="/lt/what-is-an-unsubsidized-loan-1311490" class="hover:text-tech-500 transition-colors line-clamp-3">Kas yra nesubsidijuota paskola? Apibrėžimas ir paaiškinimas </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="/lt/locating-strategies">
						 <img src="https://techcodeview.com/img/selenium-tutorial/35/locating-strategies.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Vietos nustatymo strategijos – (pagal XPath – naudojant yra())" 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="/lt/locating-strategies" class="hover:text-tech-500 transition-colors line-clamp-3">Vietos nustatymo strategijos – (pagal XPath – naudojant yra()) </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="/lt/how-create-requirements">
						 <img src="https://techcodeview.com/img/geeks-premier-league-2023/93/how-create-requirements.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Kaip sukurti failą Requirements.txt programoje Python" 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="/lt/how-create-requirements" class="hover:text-tech-500 transition-colors line-clamp-3">Kaip sukurti failą Requirements.txt programoje Python </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">Kategorija </h2>
		 </div>
		 <div class="flex flex-wrap gap-2">
             <a href="/lt/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">
                Dienoraštis
             </a> <a href="/lt/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 Konvertavimas
             </a> <a href="/lt/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="/lt/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">
                Java Kolekcijos
             </a> <a href="/lt/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">
                Skirtumai
             </a> <a href="/lt/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">
                Java Eilutė
             </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">Įdomios Straipsniai </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/picked/45/compiling-with-g.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Kompiliavimas naudojant g++" 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="/lt/picked/">Išrinktas </a> </div>
						 <h4 class="text-sm font-bold text-white leading-tight"> <a href="/lt/compiling-with-g">Kompiliavimas naudojant g++ </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/12/how-many-teaspoons-tablespoon.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Kiek arbatinių šaukštelių valgomajame šaukšte?" 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="/lt/blog/">Dienoraštis </a> </div>
						 <h4 class="text-sm font-bold text-white leading-tight"> <a href="/lt/how-many-teaspoons-tablespoon-13112">Kiek arbatinių šaukštelių valgomajame šaukšte? </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/72/113-pictionary-words-make-your-own-game.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="113 vaizdingų žodžių, kad sukurtumėte savo žaidimą" 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="/lt/blog/">Dienoraštis </a> </div>
						 <h4 class="text-sm font-bold text-white leading-tight"> <a href="/lt/113-pictionary-words-make-your-own-game-13168">113 vaizdingų žodžių, kad sukurtumėte savo žaidimą </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/88/complete-official-sat-practice-tests.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Užpildykite oficialius SAT praktikos testus, nemokamos nuorodos" 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="/lt/blog/">Dienoraštis </a> </div>
						 <h4 class="text-sm font-bold text-white leading-tight"> <a href="/lt/complete-official-sat-practice-tests-1311080">Užpildykite oficialius SAT praktikos testus, nemokamos nuorodos </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/13/best-digital-sat-reading-writing-practice-tests.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Geriausi skaitmeninio SAT skaitymo ir rašymo praktikos testai" 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="/lt/blog/">Dienoraštis </a> </div>
						 <h4 class="text-sm font-bold text-white leading-tight"> <a href="/lt/best-digital-sat-reading-writing-practice-tests-131832">Geriausi skaitmeninio SAT skaitymo ir rašymo praktikos testai </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/dsa/12/tangents-between-two-convex-polygons.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Liestinės tarp dviejų išgaubtų daugiakampių" 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="/lt/dsa/">DSA </a> </div>
						 <h4 class="text-sm font-bold text-white leading-tight"> <a href="/lt/tangents-between-two-convex-polygons">Liestinės tarp dviejų išgaubtų daugiakampių </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 Visos Teisės Saugomos | 
                 <a href="//www.techcodeview.com/sk/">techcodeview.com </a> | 
                 <a href="/disclaimer" rel="nofollow noopener noreferrer" target="_blank">Atsisakymas </a> | 
                 <a href="/about-us" rel="nofollow noopener noreferrer" target="_blank">Apie Mus </a> | 
                 <a href="/privacy-policy" rel="nofollow noopener noreferrer" target="_blank">Privatumo Politika </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>