|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I need a table, width 85% of the screen, but never less than 500 pixels - hence the first row (the tsp.gif is a transparent pixel). I have three columns, left and right column have a fixed width, the center column fills the rest.
Now, this code... Code:
<table width="85%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3"><img src="tsp.gif" width="500" height="1"></td>
</tr>
<tr>
<td width="0"><img src="tsp.gif" width="175" height="1"></td>
<td width="100%">asd</td>
<td width="0"><img src="tsp.gif" width="100" height="1"></td>
</tr>
</table>
...produces what I want in Netscape 4.6, but when I resize the IE 5 window, the table doesn't get as small as I need it (minimum 500 pixels), the minimum width is always 500 pixels PLUS the width of the left and the right column. Any Ideas how to get this right?! Thanks a lot! (Of course, I could put another table that defines the min. width around the one above, but I actually have one header table and one content table, and I want them separated to have something displayed before all the content is loaded.) |
|
#2
|
|||
|
|||
|
In your second <tr>, don't specify width="100%" for the middle <td>, and specify the width of the images as the width for the first and third <td>.
__________________
Michael
|
|
#3
|
|||
|
|||
|
But I need the center column to stretch all over the screen.. I think if don't set the width to a real high percentage, it won't scretch?
|
|
#4
|
|||
|
|||
|
When I tried it with your code, if you set the first and third <td> to a fixed width, they always occupied only that width, and the center one occupied the remaining width, up to the width of the outer table.
|
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Table Min Width! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|