I have some tables with data in HTML. I am trying to figure out how to dynamically set the column width (preferably with CSS) to fit the longest value, but I would like the column
Solution 1:
In your stylesheet Add:
white-space:nowrap;
to your TD
, but not to your TH
.
Post a Comment for "How To Set Table Column Widths To The Longest Value, Excluding Header"