It appears that Prince, IE, Firefox, and Opera treat margin-left for ol differently.
Here's the test case: an ordered list with 1 element, placed under a line formatted as <p>A paragraph</p>.
In the description below, col 1 = kind of browser, or prince,
col 2 is where the "1" of the ol is positioned, relative to the line above, in approx char spaces.
From this I conclude that if a margin-left is specified, for FireFox and Opera, the length is added to the margin used by default when nothing is specified. But for IE and Prince, if a margin-left is specified, it is added to an initial negative offset which is the amount the marker is positioned in front of the list item itself.
I note that CSS has a list-style-position that affects this, but it also affects how line wraps occur.
What I want is a list-style-position: outside, so line wraps do not come underneath the number, but with a consistent meaning between IE, FireFox, Opera, and Prince.
The closest I can get to this that I've discovered so far, is to not have any setting for margin-left. Then all the browsers indent about the same amount, but Prince indents almost 2x what the browsers do. Is there any way to get Prince to indent less, the same as the browsers?
Alternatively, is there a way to say in CSS use this value if the thing using CSS is IE or Prince, otherwise, use a different value?
-Marshall Schor
Here's the test case: an ordered list with 1 element, placed under a line formatted as <p>A paragraph</p>.
In the description below, col 1 = kind of browser, or prince,
col 2 is where the "1" of the ol is positioned, relative to the line above, in approx char spaces.
no CSS: IE: 3
no CSS: FireFx: 3.5
no CSS: Prince 5
no CSS: Opera: 3.5
margin-left: 1em
CSS: IE: -2 (it's outdented)
CSS: FireFx: 5 (it added the 1em to the previous)
CSS: Opera: 5
CSS: Prince: -2
From this I conclude that if a margin-left is specified, for FireFox and Opera, the length is added to the margin used by default when nothing is specified. But for IE and Prince, if a margin-left is specified, it is added to an initial negative offset which is the amount the marker is positioned in front of the list item itself.
I note that CSS has a list-style-position that affects this, but it also affects how line wraps occur.
What I want is a list-style-position: outside, so line wraps do not come underneath the number, but with a consistent meaning between IE, FireFox, Opera, and Prince.
The closest I can get to this that I've discovered so far, is to not have any setting for margin-left. Then all the browsers indent about the same amount, but Prince indents almost 2x what the browsers do. Is there any way to get Prince to indent less, the same as the browsers?
Alternatively, is there a way to say in CSS use this value if the thing using CSS is IE or Prince, otherwise, use a different value?
-Marshall Schor