PDA

View Full Version : Assigning min-width to a table


dhtmlhelp
04-23-2003, 05:03 PM
Hi,

what is the syntax to assign a minimum width to a table. I know I can do it with classes (min-width: 640; for example) but I am not sure if it is an attribute supported by <table>. Can anyone clarify?

DH

pardicity3
04-23-2003, 06:26 PM
There is no intrinsic attribute for table that will allow you to specify min-width. But I don't see what is wrong with using css classes to specify this?

<style>
.table {min-width: 640px;}
</style>


<table class="table" ...>
<tr>
<td>....</td>
</tr>
</table>

Roy Sinclair
04-23-2003, 06:38 PM
It exists but IE doesn't seem to support it so you can't count on it working in the majority of the user's systems out there :mad: .

redhead
04-23-2003, 06:38 PM
i dont think that min-width is supported by much yet (mozilla, perhaps?), but it is pretty much the only way of doing it, short of putting the age old spacer.gif set to the width you want...

dhtmlhelp
04-23-2003, 09:55 PM
Hi Guys,

thanks, yes I have had to turn to the space man, what is wrong with microsoft, they should support all css attributes, they have a, hm hm, responsibility to the world.

go figure.

DH