Closed
Bug 37079
Opened 26 years ago
Closed 26 years ago
default <img> adds a little bit of bottom margin...
Categories
(Core :: CSS Parsing and Computation, defect, P3)
Tracking
()
VERIFIED
FIXED
People
(Reporter: jameslariviere, Assigned: pierre)
References
Details
Attachments
(1 file)
|
503 bytes,
text/html
|
Details |
I've noticed that the default rendering of images adds a little bit of a
bottom "white space". Here is my example:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<style type="text/css">
<!--
img {
margin: 0;
padding: 0;
}
-->
</style>
</head>
<body>
<img src="http://www.mozilla.org/images/mozilla-banner.gif"><img
src="http://www.mozilla.org/images/mozilla-banner.gif">
<img src="http://www.mozilla.org/images/mozilla-banner.gif">
<img src="http://www.mozilla.org/images/mozilla-banner.gif">
</body>
</html>
As you can see I set images to take out margin or padding. It doesn’t work
because the "extra" space is still there. The only way I could get the space
to disappear is to add "display: block" to the rule. However, I don't think
this is a realistic solution...
Comment 1•26 years ago
|
||
Comment 2•26 years ago
|
||
ryhan_ut@yahoo.com, please follow the Bug Writing Guidelines at
http://www.mozilla.org/quality/bug-writing-guidelines.html -- in particular,
it is important that you specify your Platform and OS, as well as the Build ID,
which appears at the right-hand end of the status bar at the bottom of the
browser window will look something like 2000042508.
Using the 2000-04-24-17-M16 nightly binary on WinNT 4.0, there is no space
between the images in the testcase. Please respond if you see extra space
using a current nightly binary on any Platform or OS; otherwise, this report
will get marked WORKSFORME.
Comment 3•26 years ago
|
||
This bug is visible in M15 but not in the latest M16 nightlies (200042417).
Status: UNCONFIRMED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 4•26 years ago
|
||
yep it was just a bug in m15 and not in the current build (2000042512). FIXED!
Comment 7•25 years ago
|
||
Can someone please re-open?
When viewing the testcase, I see the described behaviour (extra white-space
underneath the images) where there shouldn't be. I also see it in some of my
XHTML pages (with the appropriate DTD), which prompted me to look this bug up.
Bug occurs on Mozilla build 2001-01-05-08 (Mac OS 9) and, for reference, I've
also seen it on the final Netscape 6 (Mac OS 9).
Comment 8•22 years ago
|
||
This bug still affects Firefox 0.9 (I'm using a PC running Linux).
I'm currently using the display: block workaround...
Please re-open.
You need to log in
before you can comment on or make changes to this bug.
Description
•