Closed Bug 406750 Opened 17 years ago Closed 17 years ago

Right floated block content pushed down by inline content.

Categories

(Firefox :: General, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 50630

People

(Reporter: bugs, Unassigned)

References

()

Details

Gecko behaviour agrees with Internet Explorer 6 - but disagrees with Konqueror, Safari and Opera.
On this page, the left text (blue coloured border) is styled display: inline; the right div (red coloured border) is float: right.
The expected behaviour was for the right floated content to be aligned with top of page and inline text.

In IE and Firefox, this did not occur, instead, the floated block was pushed down by the line height.

If the order of the div and the inline element are reversed on the page, the float occurs as expected.

Looked around for existing bugs before filing, but feel free to dupe.
Bothers me more that this behaviour is inconsistent with the other standard browsers.
IE, I am used to working around with conditional comments.  Firefox, is more difficult to work around.  I have to use Gecko specific pseudo-classes.
OS: Linux → All
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.