Forum Moderators: open

Message Too Old, No Replies

table size problem IE6

         

prupru

5:37 pm on Feb 26, 2008 (gmt 0)

10+ Year Member



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.

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-->&nbsp;</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...

[edited by: encyclo at 7:58 pm (utc) on Feb. 26, 2008]
[edit reason] no links to personal sites please [/edit]

deMorte

2:23 pm on Feb 27, 2008 (gmt 0)

10+ Year Member



I think your problem is that your first cell inside the table is set to be the width of 100% and next this there is a another cell with width of 226px.
Maybe you could try not setting the width of the first cell.