Closed Bug 139803 Opened 23 years ago Closed 23 years ago

Image acts as breakable character in table cells

Categories

(Core :: Layout: Tables, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 139723

People

(Reporter: gwagner, Assigned: karnaze)

Details

Using: <table border="1"> <tr valign="top"> <td>some text</td> <td width="1%">&nbsp;<img src="..." align="top"></td> </tr> </table> The image appears one text line down in the table cell, as if the non-breaking space were a breakable space, and it was wrapping the content of the 1% wide cell. The problem is, if you replace the image with text (<td width="1%">&nbsp;ABCD</td>), this behaviour does not occur. Since there is no "breakable" content in the 1% wide cell, the content of this cell should not wrap. Also note that adding "nowrap" to the cell or <nobr></nobr> tags around it's content prevents this behaviour. I just think it is inconsistent to allow <td>&nbsp;<img ...></td> to break, but <td>&nbsp;ABCD</td> not to. I am wondering if this could be related to other image/table alignment issues such as bug 116428. This behaviour is occurring in 1.0 RC1 and Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.9+) Gecko/20020424
duped *** This bug has been marked as a duplicate of 139723 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.