Closed
Bug 128060
Opened 23 years ago
Closed 20 years ago
Margins do not work on OL elements
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
People
(Reporter: georg, Assigned: dbaron)
References
Details
Attachments
(3 files)
Mozilla ignores margin settings on positioned OL elements
There might be a relation to http://bugzilla.mozilla.org/show_bug.cgi?id=122883
| Reporter | ||
Comment 1•23 years ago
|
||
| Assignee | ||
Comment 2•23 years ago
|
||
A simpler testcaes would be nice. You'd also better clearly describe what you
expect to happen in the testcase since I can't see what's wrong.
| Reporter | ||
Comment 3•23 years ago
|
||
The previous attachement included the wrong stylesheet. Now it includes the
correct one.
| Assignee | ||
Comment 4•23 years ago
|
||
I still don't see the problem (even after correcting a bunch of relative URLs
that assumed the ZIP would be unzipped in the root directory).
Could you:
* attach a testcase to the bug that can be clicked on from the bug (a single
HTML file with CSS and JS inside of it), as a text/html file rather than
application/x-zip-compressed
* describe what you expect to see in that testcase and how that is different
from what actually happens.
| Reporter | ||
Comment 5•23 years ago
|
||
OK, I try to build a all in one test case.
| Assignee | ||
Comment 6•23 years ago
|
||
I'm wondering if the "problem" you're seeing is the result of bug 2038, though.
Do you really want to specify 'padding' and 'margin' rather than just
specifying 'margin' and leaving 'padding' as the UA default (which can vary
depending on how the default indentation is implemented).
| Reporter | ||
Comment 7•23 years ago
|
||
| Assignee | ||
Comment 8•23 years ago
|
||
You still haven't said what it is that you expect to happen and how Mozilla's
behavior differs from that.
| Reporter | ||
Comment 9•23 years ago
|
||
I want 1 em indention, this works well with IE by setting the margin but is
ignored by Mozilla and my writings are also ignored by multiple MID-AIR-COLLISIONs
| Assignee | ||
Comment 10•23 years ago
|
||
You need to add 'padding-left: 0' where you have 'margin-left: 1em'. (You
should probably also specify both 'margin-left: 0' and 'padding-left: 0' for the
LI elements.) The CSS spec doesn't say whether the default indendation on lists
should be treated as margin or padding (or whether it's on UL or LI), and we
have chosen the more sensible option, which is padding. See bug 2038 and
http://www.people.fas.harvard.edu/~dbaron/css/user/boxmodel .
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
| Reporter | ||
Comment 11•23 years ago
|
||
Ok, I'll try this tomorrow, when I'm back to my working place. If trhis works, I
build a third layout stylesheet which contains the differences between Mozilla
and IE.
| Assignee | ||
Comment 12•23 years ago
|
||
Putting in 'padding-left: 0' isn't going to change anything in IE. You don't
need to sniff stylesheets.
| Reporter | ||
Comment 13•23 years ago
|
||
OK, using the padding results in the desired look. Thanks for advicing me.
| Assignee | ||
Comment 15•22 years ago
|
||
*** Bug 200806 has been marked as a duplicate of this bug. ***
| Assignee | ||
Comment 16•22 years ago
|
||
*** Bug 200806 has been marked as a duplicate of this bug. ***
| Assignee | ||
Updated•20 years ago
|
Status: VERIFIED → UNCONFIRMED
Resolution: INVALID → ---
| Assignee | ||
Comment 17•20 years ago
|
||
*** This bug has been marked as a duplicate of 27851 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago → 20 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•