CSS border display screwed up when using "float: none" in SPAN element

VERIFIED INVALID

Status

()

Core
Layout
VERIFIED INVALID
16 years ago
16 years ago

People

(Reporter: David Smith, Assigned: Marc Attinasi)

Tracking

Trunk
x86
Windows 2000
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

16 years ago
Using the border property in a SPAN element when set to "float: none" screws up
the border.  Works fine with "float: left" or "float: right".
Ex:

<SPAN STYLE="border: ridge 6px #FF0000; float: none">
  <IMG SRC="sample.gif">
</SPAN>

results in a box about one text line high, with the bottom flush with the bottom
of the image.
I'm sorry, but this is invalid.  Floating the <span> makes it a block, so it
becomes the size of the images.  If it's not floated, it is an inline and its
height is the text height, independent of the image size.  The rendering you see
is correct.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 16 years ago
QA Contact: petersen → ian
Resolution: --- → INVALID
Correct per CSS2.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.