Closed
Bug 64280
Opened 25 years ago
Closed 25 years ago
gif in table height increased
Categories
(Core :: Layout: Tables, defect)
Tracking
()
People
(Reporter: mra, Assigned: karnaze)
References
()
Details
Attachments
(2 files)
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; m18) Gecko/20001228
BuildID: 2000122805
gif images in a table are shown much higher than they should be (aprox 20 pixels
rather than 2)
Reproducible: Always
Steps to Reproduce:
comparing:
http://www.java.sun.com/
http://www.java.sun.com/aboutJava/communityprocess/?frontpage-spotlight
Actual Results: the banner across the top of the page is painted wrongly in the
Comunity Process page
Expected Results: displayed the gifs 2 pixels high
The html is similar differing by the use of
<tr VALIGN="middle">
<td WIDTH="100%">
vs
<tr>
<td ALIGN="RIGHT"><img SRC="/images/banners/stripelt.gif" WIDTH=6 HEIGHT=14
ALT=""></td>
<td WIDTH="100%">
this may be a duplicate of 33443 or 63138.
Comment 3•25 years ago
|
||
Confirmed
Platform: PC
OS: Windows 98
Mozilla Build: 2001010204
Marking NEW.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 5•25 years ago
|
||
the both urls use
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
so those pages get rendered in standard mode and it's not a bug..
testcase is not correct...
hmm... for ie5 there is a difference between this:
<td><img src="any.gfx" height="2" alt="1">
</td>
and this:
<td><img src="any.gfx" height="2" alt="1"></td>
ie5 renders the first example always as <td>'gfx''space'</td>
and the second as <td>'gfx'</td>
Comment 6•25 years ago
|
||
*snip
This is not a bug. The line-height for the TD element acts as the minimum
line-box height for all of the line boxes within that block, so extra space
should be there, according to CSS1/CSS2. See section 10.8 of CSS2:
http://www.w3.org/TR/REC-CSS2/visudet.html#propdef-line-height , first paragraph
in the definition of 'line-height'. (Note that "inline box" should be "line
box".)
(If you want the traditional behavior for images alone in table cells in
CSS1/CSS2, you should give those images 'display: block'.)
*snip
Should be marked as invalid
Martin you are right by saying it related to the doctype. But wrong in saying
that both pages are using the same doctype!
The first page is using 3.2 and the second one a 4.0 doctype. And that seems to
be the real problem!
In my example you can see that I'm using a 3.2 doctype. The same one of the
other page. And that one is working!
Comment 9•25 years ago
|
||
*** This bug has been marked as a duplicate of 20575 ***
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•