Any help appreciated
Minimum table/cell size
Moderator: General Moderators
Minimum table/cell size
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
Any help appreciated
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Code: Select all
<td width="50">btw, these cells allow compaction, as long as they aren't nowraps or can't wrap in any way.
- no_memories
- Forum Contributor
- Posts: 145
- Joined: Sun Feb 01, 2004 7:12 pm
- Location: New York City
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>
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>