Closed Bug 18941 Opened 25 years ago Closed 24 years ago

(see 22274) Extra space in table cells with images (standard mode)

Categories

(Core :: Layout, defect, P3)

x86
Windows 98
defect

Tracking

()

VERIFIED DUPLICATE of bug 22274

People

(Reporter: dmitry, Assigned: buster)

References

()

Details

There's a wrong empty space between the bottom of the image and the bottom of
the table cell (both are made visible by setting border=0). No amount of
forcibly setting table or cell sizes, in either HTML or CSS, seems to help. That
needs to be fixed, or a lot of pages will look broken.
I found the same problem and can provide more detailed information:

The problem seems to lie in the way Mozilla handles rows that are too long for
the window.  Make your browser window as wide as possible and go to this page:
http://www.duke.edu/~dgberg/nirl/mozilla.html
Now make your browser window much smaller by clicking and dragging on the left
border.
Now the extra space between the images will appear.

The problem disappears if you delete the <BR> tags after the images.
See ...mozilla2.html
It also disappears if you delete the ALIGN=LEFT marker. (Note: It adds a little
space, but so does IE4).  See ...mozilla3.html

These <BR>s and ALIGN tags are necessary to make the table align correctly in
certain versions of IE.

Build Version and OS: 11-5-20 1999, Win98

Hope that helps....
correction: build date should be 11-*15*-20 1999.
More Info:
Look again at http://www.duke.edu/~dgberg/nirl/mozilla.html
When you narrow the browser window so that the text wraps, the row gets taller.
When that happens, Netscape and IE center the image vertically.  Mozilla puts it
at the top.
I would disagree with the last post.  The bug is NOT limited to when the table
is larger than the window.  The following code produces the bug even when the
window is much larger than the table.  I've also tried adding align valign
tags, but they didn't help.

<table border="0" cellspacing="0" cellpadding="0" width="620" summary="">
<tr>
<td><img src="A.JPG" border="0" height="157" width="310" alt="" /></a></td>
<td><img src="B.JPG" border="0" height="157" width="310" alt="" /></a></td>
</tr>
<tr>
<td><img src="C.JPG" border="0" height="157" width="310" alt="" /></a></td>
<td><img src="D.JPG" border="0" height="157" width="310" alt="" /></a></td>
</tr>
</table>
Assignee: karnaze → kipp
The block frame inside the cell is reporting a desired height of 1470 twips (15
twips = 1 point on my system) and a max element height of 1410 twips. When I
dump frames it looks like the image frame is only taking up 1410 twips.
Reassigning.

        TR::Rfl en 00D7571C rea=0 av=(UC,UC) comp=(UC,UC)
          TC::Rfl 00D75764 rea=0 av=(UC,UC) comp=(UC,UC)
            Area::Rfl en 00D757C4 rea=0 av=(UC,UC) comp=(UC,UC)
            Area::Rfl ex 00D757C4 des=(2430,1470) maxElem=(2430,1410)
          TC::Rfl ex 00D75764 des=(2460,1500) maxElem=(2460,1440)
        TR::Rfl ex 00D7571C des=(2460,1500) maxElem=(2460,1440)
Updating to default HTML Tables Assignee...kipp no longer with us :-(
mass moving all Kipp's pre-beta bugs to M15.  Nisheeth and I will
prioritize these and selectively move high-priority bugs into M13 and M14.
Summary: Extra empty space in table cells with images → [BLOCK] Extra empty space in table cells with images
QA Contact: chrisd → petersen
mine! mine mine mine!  all mine!  whoo-hoo!
Assignee: kipp → buster
Also does this on linux... have not tried mac
- Justin
---

moving all buster m15 bugs to m16.
Target Milestone: M15 → M16
*** Bug 34967 has been marked as a duplicate of this bug. ***
Status: NEW → ASSIGNED
Target Milestone: M16 → M17
Example: http://www.billericaybaptistchurch.freeserve.co.uk/

Problem: table cells containing just an image will not reduce to less than one 
character height regardless of <td height="..."> or style settings.

Prerequisite: only happens with XHTML-1.0 Strict DTD in doctype declaration.

Notes: setting the font size to 1px in the style sheet for affected cells is a 
work-around, proving it is a "character height" minimum.
Nom. nsbeta2, recc. nsbeta2+ 6/16 and making nsbeta3+ if miss. b.c. with layout 
of HTML 3.2 tables, which are widely used for layout & positioning of content. 
Key b2 criterion.
dup, line is too tall in standard mode

*** This bug has been marked as a duplicate of 22274 ***
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
vrfy
Status: RESOLVED → VERIFIED
housekeeping
Summary: [BLOCK] Extra empty space in table cells with images → (see 22274) Extra space in table cells with images (standard mode)
You need to log in before you can comment on or make changes to this bug.