Closed Bug 173661 Opened 22 years ago Closed 22 years ago

img tag always has a space around it, regardless of border setting or style, in XHTML 1.1

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 22274

People

(Reporter: eyevee99, Assigned: jst)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2b) Gecko/20021001 Phoenix/0.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2b) Gecko/20021001 Phoenix/0.2

If I create a web site using the XHTML 1.1 doctype I can not get images to but
up against each other.



Reproducible: Always

Steps to Reproduce:
1. create html file with xhtml 1.1 doctype
2. add two images
3. set border="0" vspace="0" hspace="0" and a style of border: 0px; margin: 0px;
padding: 0px; (or any combination thereof)



Actual Results:  
notice the never but up against each other even with every conceivable border
setting set to 0



Expected Results:  
images should but up flush against each other

removing the doctype "fixes" the issue. But isn't really appropriate.  Wrapping
in tables or divs or anything doesn't help.

Works in ie.

Pseudo code example

<!Doctype XHTML 1.1>

<body>
<img><br />
<img><br />
<img><br />
</body>
See http://devedge.netscape.com/viewsource/2002/img-table/ -- the "no doctype"
rendeding is purposefully buggy for backwards compat.  The "doctype" rendering
is correct per CSS2.

*** This bug has been marked as a duplicate of 22274 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Component: DOM: HTML → DOM: Core & HTML
QA Contact: stummala → general
You need to log in before you can comment on or make changes to this bug.