Closed Bug 209754 Opened 21 years ago Closed 21 years ago

style="margin... does not work

Categories

(Core :: Layout: Block and Inline, defect)

x86
All
defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 27851

People

(Reporter: chas, Unassigned)

Details

(Keywords: testcase)

Attachments

(4 files)

User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-GB; rv:1.4) Gecko/20030612 Build Identifier: Mozilla/5.0 (Windows; U; WinNT4.0; en-GB; rv:1.4) Gecko/20030612 Mozilla ignores the CSS or style attribute for "margin*", e.g. "margin-left", "margin-right", etc. For example, if <ul style="margin-left:1em"> is used, Mozilla still displays with a WIDE margin. Reproducible: Always Steps to Reproduce: 1.Place style="margin-left:1em" or other margin attribute into a <ul>, <li>, or similar tag. 2.Display in the browser 3.Compare the result with (ugh) Internet Explorer. Actual Results: Margin do not adjust to match settings; resulting display is bad. Expected Results: Adjusted the margins as per the margin settings.
reporter, could you please add an attachment that demonstrates the problem?
Attached file Example source. (deleted) —
Attached file Testcase #2 (deleted) —
I think this is invalid (bug is in IE?)
Assignee: dbaron → block-and-inline
Severity: major → minor
Component: Style System → Layout: Block & Inline
Keywords: testcase
OS: Windows NT → All
It's not INVALID, but it is WONTFIX. *** This bug has been marked as a duplicate of 27851 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Oh, to get around it in Mozilla, use "padding-left: 1em" instead, since Mozilla uses a default padding value of 40 for some reason - explained in bug 27851 I believe. (For cross-browser compliance use both margin and padding.)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: