Berkeley CSUA MOTD:Entry 52800
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2024/11/26 [General] UID:1000 Activity:popular
11/26   

2009/4/5-13 [Uncategorized] UID:52800 Activity:low
4/5     In CSS, what is the difference between these statements. Thanks.
        #foo h1, h2, h3 {property: value}
        #foo h1 h2 h3 {property: value}
        \_ The first one will match on (h1 elements nested within the element
           with id="foo") or (all h2 elements) or (all h3 elements). The
           second one will match on all h1 elements nested within h1 elements
           second one will match on all h3 elements nested within h2 elements
           nested within h1 elements nested within the element with id="foo"
           I think.
                \_ Crap, I just realized I accidentally wrote h1 h1 h1.
                   Do you mind revising your response? Sorry and thanks.
                   \_ Done