table size problems (Full Version)

All Forums >> [Web Development] >> General Web Development



Message


prupru -> table size problems (2/26/2008 12:54:38)

Hello,
I need help with a simple table design question please...

I've created a table with spacer images and it looks just fine, but when I try to insert a picture in one of the autostrech cells the whole table oversteps the limits of the browser screen. It happens only in IE6, in Mozilla it's fine.

The cell I insert it to is inside the table, inside another table.

this is the OK table without the image:
http://rdstest.netter.ru/tablok.html

and this is the one overstepping screen size in IE6: (the image is a blue stripe)
http://rdstest.netter.ru/table1.html

here is a piece of the code:

<td height="65" colspan="5" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#99FF00">
<!--DWLayoutTable-->

<tr>

<td width="100%" height="64" valign="top" bgcolor="#00CC00">
<!-- the image: --><img src="pics/spacer.gif" alt="" width="631" height="1" />

</td>
<td width="226" valign="top" bgcolor="#0066CC"><!--DWLayoutEmptyCell--> </td>
</tr>
<tr>
<td height="1"></td>
<td><img src="pics/spacer.gif" alt="" width="226" height="1" /></td>
</tr>
</table></td>

Any help greatly appreciated...




coreybryant -> RE: table size problems (2/26/2008 13:11:02)

I see the problem also in Opera as well.

I probably missed something, but you have the image set for 631 pixels. Wouldn't that mean the image is going to show up as 631 pixel regardless of how you set the <td>, etc.




prupru -> RE: table size problems (2/26/2008 13:19:40)

Sure, it is going to show up as 631px, but if your screen resolution is not less than 1024 in width, the cell I'm trying to put picture in should show up more than 631 px in size, so insertion of the img should not cause the cell resize...




dpf -> RE: table size problems (2/26/2008 19:15:54)

quote:

but if your screen resolution is not less than 1024 in width,
and what if it is less?




dpf -> RE: table size problems (2/26/2008 19:16:22)

they look the same




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.0625