Closed Bug 542739 Opened 15 years ago Closed 15 years ago

unordered/ordered lists ignore margin-right when following a floated element

Categories

(Core :: Layout: Floats, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 57882

People

(Reporter: thomas.rehbein, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)

In the HTML code, you first use a div with float:left and margin-right with some content (like an image). 
The div directly follows text (like paragraphs) and lists (unordered or ordered).
The lists that are in the range of the floated element ignore the right margin of the floated element. The bullets or numbers that are generated by the list are directly situated next to the div. Please see my attachment.


Reproducible: Always

Actual Results:  
lists are ignoring the right margin of the floated element

Expected Results:  
lists should not ignore the right margin of the floated element

This problem does not seem to be a problem of Firefox only. Other browsers have the same problem, too. Maybe this is a more generell problem?
Component: General → Layout: Floats
Product: Firefox → Core
QA Contact: general → layout.floats
It's not that the right margin is ignored, it's just that it affects the position of the text *excluding* the bullet, and then the bullet is positioned relative to the text.  This is unfortunately what the spec says to do, though there are things we could do to improve the situation.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: