Responsive HTML table with sticky columns and mobile view created using only CSS and HTML ✨
@viki_code16K followers
386,192 views
10 Comments
Comments from the original post on X (Twitter)

@viki_code
Here's that CodePen link:
166 likes

@BairdInspire
On the xs scale make each row collapsing. Should just show checkbox and name of user. Then it should have an expandable button to see other column data. That’s my preference.
10 likes

@viki_code
It's a good idea, thank you 😊

@robdimarzo
Incredible work! The container table (max-width: 400px) { td::before { content: attr(data-label); } } is an excellent touch 👏
9 likes

@danielcranney
Great work on making a tricky task easy 🙌 tables can be so awkward so this is brilliant!
6 likes

@vkthedev
Responsive tables are always a pain for a developer. So I like this solution, maybe the headache will be less. You should make a CSS library for tables like this
3 likes

@codewithmercy
This is beautiful 🤩 love it 😍
2 likes

@Emmauzoezie
Fantastic build 👏
2 likes

@FarewelltoWind
This is great, but it must be a lot of code, right?
2 likes

@viki_code
No, about 20 additional lines of CSS
2 likes