Closed
Bug 158348
Opened 24 years ago
Closed 24 years ago
Html TABLE's height parameter not recognised if placed between <CENTER> block
Categories
(Core :: Layout: Tables, defect)
Core
Layout: Tables
Tracking
()
People
(Reporter: jayanta.pal, Assigned: karnaze)
Details
(Keywords: compat)
Html component TABLE's height parameter is not recognised if placed between
<CENTER> block.
Test Case:
----------
<html><body>
<CENTER>
<TABLE border=1 height=99%><TR><TD valign=center>
<TABLE><TR><TD>Hello World</TD></TR></TABLE>
</TD></TR></TABLE>
</CENTER>
</body></html>
---------------------------------------------------------
Remove the CENTER block to get the expected result.
Confirmed 2002071904/win98se
No dupe found
==> NEW
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 2•24 years ago
|
||
The height attribute is illegal on <CENTER> and <DIV align=center> (equivalent
according to HTML4). Therefore, the <CENTER> only grows to the height of it's
content. The height in the <TABLE> is setting height relative to the center tag
(see CSS2 Box model). A simple workaround is to use <TABLE align=center>, which
works fine (at least in quirks mode. Outside of quirks mode, you should be
using CSS anyway.) This will not be added to quirks mode unless you can show
your (outdated) syntax is used anywhere.
Comment 3•24 years ago
|
||
Oops. THe height on center thing only applies to my testing. Ignore it.
*** This bug has been marked as a duplicate of 88035 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•