View Full Version : Table Layout Issue
ashben
November 29th, 2001, 10:30
Today I came across a weird HTML problem. I have a table with 3 cells with the middle cell being 700 in width. The rest of the 2 cells need to be dynamically scaled. This method works fine in IE but screws-up in Netscape.
To explain it all better have a look at www.ashben.net/tabletest.htm
Anybody have a solution?!?!
Dusty
November 29th, 2001, 19:22
I assume you mean 4.x since it looks fine in 6.x. You can do this:
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td width="50%" bgcolor="#000080">&nbsp;</td>
<td width="700" bgcolor="#FF0000"><hr width=700></td>
<td width="50%" bgcolor="#000080">&nbsp;</td>
</tr>
</table>
That will make it work. The horizontal rule must be there, that or a 700 pixel wide image, otherwise the 50%'s override the 700 pixels.
ashben
November 29th, 2001, 23:48
Thanks Dusty! Nice tweak.
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.