Page 1 of 1
Minimum table/cell size
Posted: Mon Aug 30, 2004 5:35 pm
by [n00b]
guys how can I set the minimum with for a table or cell? I set them to autostretch (100% width) but when the window size is small content looks weird so I need to put some minimum width.
Any help appreciated

Posted: Mon Aug 30, 2004 5:40 pm
by feyd
however, you need to be careful which cells you mark as such..these cells are often the LAST ones to expand.. (50 pixels)
btw, these cells allow compaction, as long as they aren't nowraps or can't wrap in any way.
Posted: Mon Aug 30, 2004 6:46 pm
by no_memories
min-width: 50px; css 2 rule is supported by Mozilla and Opera, and I believe Safari/Konquerer.
Also, you can put a <div> with a width set at a determined width so the cell won't shrink beyond the div's width.
Example:
<td width="100%">text and stuff here <!-- put the dive at the end of the content of the <td> --><div style="width: 50px;"></div></td>