Posted by Bob on 06/02/05 18:55
Table issue: the table below has a fixed column width with a graphic
of that exact width in it. Next to the graphic is a little text. Since
the graphic is the exact width of the column, the text should
be forced to the next line.
Works fine in Netscape & Mozilla. In MSIE, the "Text" will not wrap
to the next line *unless* there is a hard space between the closing
angle bracket of the <img> tag and the word "Text". Instead, it stays
on the same line of the graphic and forces the cell to get larger.
Thoughts ? Thanks, code below for both samples
<!-- this table does not put 'Text' to the next line in MSIE -->
<table BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="239" >
<tr>
<td WIDTH="239" valign="top">
<img border="0" src="images/spacer.gif" width="239"
height="21">Text
</td>
</tr>
</table>
<!-- this table works as expected - whitespace before "Text" is
only change to table -->
<table BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="239" >
<tr>
<td WIDTH="239" valign="top">
<img border="0" src="images/spacer.gif" width="239"
height="21"> Text
</td>
</tr>
</table>
[Back to original message]
|