This CSS should be sufficient:
td { min-width: 100px; }
However, it does not always comply correctly (min-width attribute) with all browsers (for example, they donβt like IE6).
Edit: As for the IE6 solution (and earlier), as far as I know, no one works reliably under any circumstances. Using the nowrap HTML attribute does not actually provide the desired result, as it simply prevents line breaks in the cell, rather than specifying a minimum width.
However, if nowrap is used in conjunction with a regular mesh width value (e.g. using width: 100px), 100px will act as the minimum width and the cell will still expand with text (due to nowrap). This solution is different from the ideal, which cannot be fully applied using CSS and, as such, would be tedious to implement if you have many tables to which you want to apply this. (Of course, all this alternative solution crashes if you want to have dynamic breaks in cells anyway).
James Burgess Sep 11 '08 at 14:22 2008-09-11 14:22
source share