cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv headernumbered-list123split-screen
CodePen probably won't work great in this browser. We generally only support the major desktop browsers like Chrome, Firefox, Safari, and Edge. Use this one at your own risk! If you're looking to test things, try looking at Pens/Projects in Debug View.
user profile image

This is a relatively well-known pattern for responsive tables, but it's worthwhile to give a reminder or FYI to the new folks. I've also tried to make it accessible for screen readers.

Comments

  1. I've used this method a lot, I generally think it's one of the better ways to display data that needs a certain format to be understood.

  2. Thanks for this, works great and I'm about to implement it on something I'm working on.

    I was wondering, is it an issue that the table header elements have the scope value of col, and when the layout changes their scope should then be row.

  3. This is exactly what I've been looking for. Thanks!

  4. Thank you very much for this pen, Mr. Smith!

  5. I have implemented this and it works fine when I resize the window on desktop, but on mobile, the table still goes outside the borders of the screen?

Leave a Comment Markdown supported. Click @usernames to add to comment.

You must be logged in to comment.
Loading...
Loading...