At 06:22 AM 8/8/2006, Christian Heilmann wrote:
Don't bother with list-style image but use list-style none on BOTH UL
and LI and then use padding + background image and all is fine.
http://css.maxdesign.com.au/listamatic/vertical05.htm


Hey Christian,

I've never seeen the need to apply list-style to *both* UL & LI -- and the listamatic example you cite applies it only to UL. Could you please elaborate on this niggly little point?

Thanks,
Paul


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;}.

CSS 2.1 Specification
12 Generated content, automatic numbering, and lists
12.5 Lists
http://www.w3.org/TR/CSS21/generate.html#q10

9 Visual formatting model
9.2.4 The 'display' property
http://www.w3.org/TR/CSS21/visuren.html#display-prop


******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************

Reply via email to