How to Add Scrolling & Sticky Headers to HTML Tables with CSS

preview_player
Показать описание
It only takes a bit of CSS to make your HTML tables scrollable with some sticky headers. This is useful if you have a lot of rows in your table but don't want to take up too much space on the webpage.

For your reference, check this out:

If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!

#dcode #html #css
Рекомендации по теме
Комментарии
Автор

I don’t know why, but I always have to search for your content. It never appears in my feed. I always watch your content even though it may be days or a week before I search for it again. Your bite-sized content is great.

douglascounts
Автор

Nice one, we need more video contents like this ❤❤

wildfoster
Автор

Good stuff concise and clear tutorial.

johngates
Автор

There's an issue when using position: sticky; it seems you can't use z-index to display a modal window above it, or it affects drop-downs. Is there a way to achieve this without using position: sticky?

GarhwalTV
Автор

nth-of-type isn't "n. t. h.", it's "nth" -- as in "...4th, 5th, 6th, nth..." That is why it's a function that you pass a value into (the value of "n").

tgoyer
Автор

too much talking just get to the point

leetcoder
Автор

Adding Scrolling and Sticky Headers to HTML Tables, so well explained. Thanks, Dom.

{2024-11-04}

Pareshbpatel