Closed
Bug 114159
Opened 24 years ago
Closed 24 years ago
<td valign="bottom"> does not work
Categories
(Core :: Layout, defect)
Tracking
()
People
(Reporter: morpheus, Assigned: attinasi)
Details
Attachments
(3 files)
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.6) Gecko/20011120
BuildID: 2001112009
The valign="bottom" attribute on the <td> tag does not push the contents of the
<td> container to the bottom as expected.
Reproducible: Always
Steps to Reproduce:
1.Cut and paste the html below into a file:
<html><body>
<table border="0" cellpadding="0" cellspacing="0" bgcolor="#ff0000">
<tr>
<td valign="bottom"><img src="http://www.mozilla.org/images/mozilla-banner.gif"
border="0" /></td>
</tr>
</table>
</body></html>
2.View the file.
Actual Results: Notice the green bar below the image. Bad! The green is from
the background of the table.
Expected Results: There should be no green visible from the background of the
table.
Comment 1•24 years ago
|
||
Comment 2•24 years ago
|
||
WFM, i.e. no green bar below the image. Build ID: 2001 12 06 03. Windows 2000.
Reporter: Could you please try a later build?
Comment 3•24 years ago
|
||
WFM, win98SE, 2001120504
also WFM, win98, 2001112009
Having trouble testing with a more recent build. The nightly build's zip file
seems to be incomplete. It's been like that for the past two days. Am I the
only one who has noticed this? The tree looks green...
Tested with Build 2001112009 and 2001121003 on Windows XP.
Looks like I didn't give you the right test case. I've added a new test case
that adds the DOCTYPE tag (using the Transitional DTD). The green bar is
showing up now.
If using the Transitional DTD means some tag parameters are now obsolete, is
there a list somewhere I can look up? Is there CSS solution to this problem?
I've tried using the CSS margin and padding properties (setting them to 0) to no
success.
Comment 7•24 years ago
|
||
The css solution is to set the image to display:block or vertical-align:bottom.
see bug 22274 for all the gory details.
This is correct behavior, not a bug.
*** This bug has been marked as a duplicate of 22274 ***
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
So what exactly is the point of using the Transitional DOCTYPE then if I'm just
bumped into Strict anyway?
Comment 9•24 years ago
|
||
morpheus, no you are not bumped into strict. It is transitional but we follow
the standards. By using that doctype you are forced into complying with the
standards (since that's what the doctype says you are doing anyway).
See http://mozilla.org/docs/web-developer/quirks/doctypes.html for more
information on Quirks vs. Standards mode. (Not the same as strict vs transitional)
Verify dupe.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•