I can’t change the width size of my <th>. Is it possible to force the table to keep everything inside a <th> in one line? If I set width 100% on them nothing happens
Something like min-width:100px <– which is AUTO
So it’s on one line and enabled horizontal scroll
Forcing everything to be one one line is done with
white-space:nowrap.Take note though: in a table, every width depends on widths of things elsewhere in the table, so you must be on the lookout for surprises. That said,
width:100%should definitely do something, even if it may not be what you expect. We need some of your code to tell you more.