News for hackers. Stuff that matters.
Re:Making Tables Responsive with Minimal CSS by coda on Tuesday June 11, 2019 @08:49AM (#20154903)
You could move the data into a data attribute, and then use "content: attr(data-td)" for example.
Re:Making Tables Responsive with Minimal CSS by andrelaszlo on Tuesday June 11, 2019 @09:12AM (#20155059)
Doesn't that take the problem back to the spot where we have the header repeated for each cell? In a data attribute instead of a span, which may be cleaner, but still:

https://codepen.io/andrelaszlo/pen/xoxmdg

Is there a way to only define the header label once and refer to them depending on the cell using only CSS?

Re:Making Tables Responsive with Minimal CSS by aabbcc1241 on Wednesday June 12, 2019 @02:03AM (#20162129)
you may use html template engine