You are here: Table / Whitespace issue in MSIE ? « HTML « IT news, forums, messages
Table / Whitespace issue in MSIE ?

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>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация