An Interest In:
Web News this Week
- April 29, 2024
- April 28, 2024
- April 27, 2024
- April 26, 2024
- April 25, 2024
- April 24, 2024
- April 23, 2024
July 12, 2019 10:31 pm GMT
Original Link: https://css-tricks.com/position-sticky-and-table-headers/
Position Sticky and Table Headers
You can't position: sticky;
a <thead>
. Nor a <tr>
. But you can sticky a <th>
, which means you can make sticky headers inside a regular ol' <table>
. This is tricky stuff, because if you didn't know this weird quirk, it would be hard to blame you. It makes way more sense to sticky a parent element like the table header rather than each individiaul element in a row.
The issue boils down to the fact that … Read article
The post Position Sticky and Table Headers appeared first on CSS-Tricks.
Original Link: https://css-tricks.com/position-sticky-and-table-headers/
Share this article:
Tweet
View Full Article