Previous Message
Next Message

Re: [css-d] CSS defining classes.

Sent by Stuart Langridge on 26 July 2002 05:05


Diego Lafuente spoo'd forth:
> LI { font: 11px Tahoma, Verdana, Arial;
>     color: #666; 
>     /* this li tag hasn't bottom margin */ }
> 
> 
> UL.margin10px, LI { font: 11px Tahoma, Verdana, Arial;
>     color: #666; 
>     margin-bottom: 10px; }

Your selector is slightly (but importantly) wrong. The comma between
UL.margin10px and LI means one *or* the other, not one *containing* the
other. Remove the comma, so that the selector reads "UL.margin10px LI"
and it should work, applying only to LIs within a UL of class
"margin10px".

The selectoracle, http://gallery.theopalgroup.com/selectoracle/, will
describe (in either English or Spanish) what exactly a selector applies
to: on your selector it gave the explanation "selects any UL element
with a class attribute that contains the word margin10px or any LI
element", which might have helped you out.

sil

-- 
In 1988 there was the war, and after that there were no more roses. Not
for anybody.
           -- "V For Vendetta", Alan Moore
Previous Message
Next Message

Possibly related: