On Aug 9, 2006, at 11:50 AM, Paul Novitski wrote:
PS: Frankly, since the list-style properties apply only to
elements with {display: list-item}, I'm a little surprised that
it's correctly applicable to UL at all and not just LI, but I guess
it's just a quirk of CSS that we can give a LIST CONTAINER a LIST-
ITEM display. When it is applied to UL, I assume that its child
LIs inherit the property, but I don't see the inherent advantage to
a rule like ul {list-style...} over li {list-style...}. Myself, I
always roll my own lists just with li {list-style-type: none;}.
li {list-style-type: none;} applies to all li on a page, in a <ul> or
a <ol>
Personally, I do ul li {list-style: whatever}. or ul.classname li {}
CSS 2.1 Specification
12 Generated content, automatic numbering, and lists
12.5 Lists
http://www.w3.org/TR/CSS21/generate.html#q10
the keyword here is:
inherited: yes
The list-marker will be applied to the descendants of the <ul>, not
the <ul> itself, as that on has display:block, unless otherwise
specified.
Philippe
---
Philippe Wittenbergh
<http://emps.l-c-n.com>
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************