Closed
Bug 5080
Opened 26 years ago
Closed 26 years ago
presence of inline elements enlarging table cells (correctly?)
Categories
(Core :: Layout, defect, P3)
Core
Layout
Tracking
()
People
(Reporter: dbaron, Assigned: buster)
References
()
Details
Attachments
(2 files)
I'm about to post this on mozilla-layout:
On Wed, 14 Apr 1999 11:25:45 +0200, "Rolf Offermanns"
(offerman@pool.informatik.rwth-aachen.de) wrote:
>
> Have a look at
> http://tux.kawo2.rwth-aachen.de/~rolf/
> with Communicator 4.51 or IE4/5 and then with mozilla (incl. 14-4-1999).
> Notice the difference when resizing the browser and the layout of the
> navigation bar at the top of the page!
>
> Did i do something wrong while coding this page or is it a mozilla problem?
This is a very complicated problem having to do with inline elements.
The CSS rule
table.someclass img { vertical-align: top; }
stops the behavior you describe.
I think Mozilla's behavior is actually correct. What is happening is that
the images are within A elements, which are inline elements, and are
baseline-aligned within those A elements. This means that there is room
below the images for text descenders of any text that would be in the
A elements (and for that matter, also the half-leading from line-height
minus font-size). Since table cell heights are minimum heights, not
enforced heights, the table cells with images that are anchors end up
being bigger than 31px.
I will attach test cases. I'm not sure whether you should do anything about
this.
Reporter | ||
Comment 1•26 years ago
|
||
Reporter | ||
Comment 2•26 years ago
|
||
Updated•26 years ago
|
Status: RESOLVED → VERIFIED
Comment 4•26 years ago
|
||
Agreed, this is a duplicate of 4769.
You need to log in
before you can comment on or make changes to this bug.
Description
•