Skip navigation
Responsive HTML table with sticky columns and mobile view created using only CSS and HTML ✨
0:00 / 0:33

Responsive HTML table with sticky columns and mobile view created using only CSS and HTML ✨

Viki ✨

@viki_code16K followers

Visit on X
3,248 likesDownloadOriginal post

386,192 views

Responsive HTML table with sticky columns and mobile view created using only CSS and HTML ✨ CodePen link below 👇

10 Comments

Comments from the original post on X (Twitter)

  • Viki ✨'s profile picture

    @viki_code

    Here's that CodePen link:

    166 likes

  • Baird's profile picture

    @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 ✨'s profile picture

    @viki_code

    It's a good idea, thank you 😊

  • Rob DiMarzo's profile picture

    @robdimarzo

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

    9 likes

  • Daniel Cranney 🇬🇧's profile picture

    @danielcranney

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

    6 likes

  • vitaly's profile picture

    @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

  • Code With Mercy's profile picture

    @codewithmercy

    This is beautiful 🤩 love it 😍

    2 likes

  • Emmanuel uzoezie's profile picture

    @Emmauzoezie

    Fantastic build 👏

    2 likes

  • ByeWind's profile picture

    @FarewelltoWind

    This is great, but it must be a lot of code, right?

    2 likes

  • Viki ✨'s profile picture

    @viki_code

    No, about 20 additional lines of CSS

    2 likes