|
Posted by Jukka K. Korpela on 05/27/06 17:13
ironcorona <iron.corona@gmail.com> scripsit:
> Is using the <ul> margin to indent the lists just an IE thing?
Hardly. But does it matter?
> Is there anywhere that states what UA's should be doing?
No.
> [I don't know
> weather this is a CSS or an HTML issue.]
It's neither. The HTML specs don't say that lists must be indented, still
less how that should be implemented. The CSS specs do not specify any
requirements on a browser's default style sheet.
What comes closest are the "sample style sheets for HTML" in CSS specs. They
are claimed to document existing browser practice - which is largely an
incorrect statement - and they are also presented as "suggested" default
style sheets. In practice, nobody takes them very seriously. Anyway, CSS
2.0 and the CSS 2.1 draft have
ul { margin-left: 40px; }
which is of course poor policy (using the em unit would be better).
CSS 1 is an improvement over its successors, in setting the value in em
units, but it also sets the indentation by setting left margin for list
items, not the list as a whole:
li { margin-left: 3em; }
Anyway, if you try to set the indentation of lists, you should explicitly
set both left-margin and left-padding, for both the list and for the list
items.
--
Yucca, http://www.cs.tut.fi/~jkorpela/
[Back to original message]
|