Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You could move the data into a data attribute, and then use "content: attr(data-td)" for example.


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?


you may use html template engine




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: