Closed
Bug 126772
Opened 23 years ago
Closed 23 years ago
browser doesn't use max height when height should be 100%
Categories
(Core :: Layout: Tables, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: andreas.meinl, Assigned: karnaze)
References
()
Details
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020204
BuildID: 2002020415
Hi!
I want to use a table to center some text on a frame, for example:
<table width="100%" height="100%">
<tr>
<td align="center" valign="bottom">
TEST-TEXT
</td>
</tr>
</table>
Why doesn't Mozilla center this text like all other browsers?
(See http://www.andreasmeinl.de/intern/logo.html for example.)
Thank you,
Andreas Meinl
Reproducible: Always
Actual Results: The text isn't centered on the frame.
Expected Results: The text should be centered on the frame, because
height="100%".
For example:
<table width="100%" height="100%">
<tr>
<td align="center" valign="bottom">
TEST-TEXT
</td>
</tr>
</table>
HEIGHT attribute inside <table> is not allowed in HTML4.01 standard. Mozilla
doesn't support it. Also see my comments on bug 125499. Remove this attribute
from your code and use other techniques (css par example) to achieve the layout
you want. E.g. this one:
<table width="100%" style="height:100%">
<tr>
<td align="center" valign="bottom">TEST-TEXT</td>
</tr>
</table>
Not sure if the above example is absolutely valid but it seems to work in Mozilla.
Marking this bug as INVALID.
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•