Kaip centruoti HTML lentelės turinį?

Kaip centruoti HTML lentelės turinį?

Šiame straipsnyje pamatysime, kaip tai padaryti sulygiuokite lentelės turinį centre . CSS teksto lygiavimo ypatybė gali būti naudojama tam tikro konteinerio ar elemento turiniui sulygiuoti.

Norėdami sulygiuoti lentelės turinį centre, galime naudoti teksto lygiavimo ypatybę CSS. Elementų lentelė gali būti stilizuota naudojant teksto lygiavimo ypatybę, o reikšmė kaip centras suteiks norimą sprendimą. Pagal numatytuosius nustatymus teksto lygiavimo ypatybė nustatyta į kairę, taigi turinys lygiuojamas į kairę, mes nepaisysime šios ypatybės reikšmės į centrą, kad sulygiuotume turinį pagal mūsų reikalavimus.

Sintaksė:

text-align: left; 

Nuosavybės vertė:

Vertybės

apibūdinimas

pradinė

Tai numatytoji reikšmė.

tu paveldi

Ji nustato vertę į pirminio elemento nuosavybės vertę.

paliko

Sulygiuoja tekstą į kairę (numatytoji savybė).

teisingai

Sulygiuoja tekstą į dešinę.

centras

Sulygiuoja tekstą centre.

pateisinti

Jis išplečia elemento turinį.

1 pavyzdys:

HTML




> <> html> lang> => 'en'> >>> <> meta> charset> => 'UTF-8'> >>>

>   

Išvestis:

Ekrano kopija-2023-12-20-133732

2 pavyzdys:

HTML




> <> html> lang> => 'en'> >>> <> meta> charset> => 'UTF-8'> >>> > content> => 'width=device-width, initial-scale=1.0'> >>> h1{> > color: green;> > text-align: center;> > }> > table {> > margin: auto;> > border-collapse: collapse;> > }> > td {> > border: 1px solid black;> > padding: 10px;> > justify-content: center;> > text-align: center;> > align-items: center;> > }> > style> techcodeview.comtitle> head> <body> <h1 style=''>techcodeview.com h1> <table class="table"> <tr> <td>R1, C1td> <td>R1, C2td> <td>R1, C3td> tr> <tr> <td>R2, C1td> <td>R2, C2td> <td>R2, C3td> tr> <tr> <td>R3, C1td> <td>R3, C2td> <td>R3, C3td> tr> lentelė> kūnas> html>>> </tag> </td> </tr> </tbody> </table> <p> </p> <i id='output-icon' title='Output'> </i> <p> </p> <pre>> </code> <p> </p> <i id='copy-url-button' title='Copy Generated Ide URL'> </i> <p> </p> <tag data-text-3=' </pre> <p> </p> <p dir='ltr'> <b> <strong>Išvestis: </strong> </b> </p> <p dir='ltr'> <img src='//techcodeview.com/img/html-questions/85/how-center-contents-an-html-table-2.webp' alt='Ekrano kopija-2023-12-20-134524'> </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 HTML lentelės turinį?&url=https://www.techcodeview.com/lt/how-center-contents-an-html-table" 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-contents-an-html-table" 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-contents-an-html-table&title=Kaip centruoti HTML lentelės turinį?" 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> <!-- 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/thread-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/processes-threads/09/thread-operating-system.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Siūlas 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/thread-operating-system">Siūlas operacinėje sistemoje </a> </h4> </div> <div class="group"> <a href="/lt/what-are-college-prep-courses-131564" 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/54/what-are-college-prep-courses.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Kas yra kolegijos parengiamieji kursai ir pamokos?" 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/what-are-college-prep-courses-131564">Kas yra kolegijos parengiamieji kursai ir pamokos? </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/linux-file-system"> <img src="https://techcodeview.com/img/linux-directories/24/linux-file-system.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Linux failų sistema" 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/linux-file-system" class="hover:text-tech-500 transition-colors line-clamp-3">Linux failų sistema </a> </h4> </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/k-means-clustering-algorithm"> <img src="https://techcodeview.com/img/machine-learning/18/k-means-clustering-algorithm.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="K-Means klasterizacijos 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/k-means-clustering-algorithm" class="hover:text-tech-500 transition-colors line-clamp-3">K-Means klasterizacijos algoritmas </a> </h4> </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/jquery-click-method-vs-onclick-event"> <img src="https://techcodeview.com/img/picked/59/jquery-click-method-vs-onclick-event.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="jQuery click() metodas vs onClick įvykis" 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/jquery-click-method-vs-onclick-event" class="hover:text-tech-500 transition-colors line-clamp-3">jQuery click() metodas vs onClick įvykis </a> </h4> </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/difference-between-where"> <img src="https://techcodeview.com/img/sql-tutorial/72/difference-between-where.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Skirtumas tarp WHERE ir HAVING" 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/difference-between-where" class="hover:text-tech-500 transition-colors line-clamp-3">Skirtumas tarp WHERE ir HAVING </a> </h4> </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-get-value-from-json-object-java-example"> <img src="https://techcodeview.com/img/java-tutorial/12/how-get-value-from-json-object-java-example.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Kaip gauti vertę iš JSON objekto „Java“ pavyzdyje" 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-get-value-from-json-object-java-example" class="hover:text-tech-500 transition-colors line-clamp-3">Kaip gauti vertę iš JSON objekto „Java“ pavyzdyje </a> </h4> </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-0-04-percentage"> <img src="https://techcodeview.com/img/maths/97/what-is-0-04-percentage.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Kas yra 0,04 kaip procentas?" 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-0-04-percentage" class="hover:text-tech-500 transition-colors line-clamp-3">Kas yra 0,04 kaip procentas? </a> </h4> </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/find-sum-of-divisors-of-all-the-divisors-of-a-natural-number"> <img src="https://techcodeview.com/img/misc/39/find-sum-of-divisors-of-all-the-divisors-of-a-natural-number.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Raskite visų natūraliojo skaičiaus daliklių sumą" 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/find-sum-of-divisors-of-all-the-divisors-of-a-natural-number" class="hover:text-tech-500 transition-colors line-clamp-3">Raskite visų natūraliojo skaičiaus daliklių sumą </a> </h4> </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/nth-fibonacci-number"> <img src="https://techcodeview.com/img/amazon/17/nth-fibonacci-number.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="N-asis Fibonačio skaičius" 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/nth-fibonacci-number" class="hover:text-tech-500 transition-colors line-clamp-3">N-asis Fibonačio skaičius </a> </h4> </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-dreamweaver"> <img src="https://techcodeview.com/img/it-problems-solutions/44/what-is-dreamweaver.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Kas yra Dreamweaver?" 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-dreamweaver" class="hover:text-tech-500 transition-colors line-clamp-3">Kas yra Dreamweaver? </a> </h4> </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/git-create-branch-from-another-branch"> <img src="https://techcodeview.com/img/github/09/git-create-branch-from-another-branch.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Git – sukurkite filialą iš kito filialo" 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/git-create-branch-from-another-branch" class="hover:text-tech-500 transition-colors line-clamp-3">Git – sukurkite filialą iš kito filialo </a> </h4> </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/linux-command/48/how-monitor-system-activity-linux-top-command.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Kaip stebėti sistemos veiklą Linux | viršutinė komanda" 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/linux-command/">Linux-Command </a> </div> <h4 class="text-sm font-bold text-white leading-tight"> <a href="/lt/how-monitor-system-activity-linux-top-command">Kaip stebėti sistemos veiklą Linux | viršutinė komanda </a> </h4> </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/javascript-tutorial/57/callback-hell-javascript.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Atšaukimo pragaras „JavaScript“." 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/javascript-tutorial/">Javascript Pamoka </a> </div> <h4 class="text-sm font-bold text-white leading-tight"> <a href="/lt/callback-hell-javascript">Atšaukimo pragaras „JavaScript“. </a> </h4> </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-network/53/udp-protocol.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="UDP protokolas" 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/computer-network/">Kompiuterinis Tinklas </a> </div> <h4 class="text-sm font-bold text-white leading-tight"> <a href="/lt/udp-protocol">UDP protokolas </a> </h4> </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/r-tutorial/14/operators-r.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="Operatoriai R" 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/r-tutorial/">R Pamoka </a> </div> <h4 class="text-sm font-bold text-white leading-tight"> <a href="/lt/operators-r">Operatoriai R </a> </h4> </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/gimp-tutorial/98/gimp-change-colors.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="GIMP pakeisti spalvas" 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/gimp-tutorial/">Gimp Pamoka </a> </div> <h4 class="text-sm font-bold text-white leading-tight"> <a href="/lt/gimp-change-colors">GIMP pakeisti spalvas </a> </h4> </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/typescript-tutorial/97/typescript-foreach.webp" onerror="this.onerror=null; this.src='https://techcodeview.com/template/assets/images/unnamed.webp'" alt="TypeScript forEach" 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/typescript-tutorial/">„Typescript“ Pamoka </a> </div> <h4 class="text-sm font-bold text-white leading-tight"> <a href="/lt/typescript-foreach">TypeScript forEach </a> </h4> </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/no/">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>