Hannes Fuß – Visual Media

CSS in responsive tables

Oh, man. To get to the point: If you want to create a table responsively, you will naturally get a space problem with small screen widths. The solution is so shockingly simple that it hurts:

Small screen:  td {display: block;}

Large screen: td {display: table-cell;}

Why hasn't anyone told me this before, I must have overslept something...

2017-12-14 ∙ Web Development

Comments (0)

Write a comment ...