[thelist] css descendant selector confusion

Noah St. Amand noah at tookish.net
Mon Feb 4 18:45:25 CST 2008


Hi Joel,

On 4-Feb-08, at 7:38 PM, Joel D Canfield wrote:

>    div#people h2,h3,p {
>    color:#ffffff;
>    padding-left:1em;
>    }

You have to start at the top after each comma. Above says h2s in  
people, plus all h3s and all ps, regardless of where they show up.

I think what you want is:

div#people h2, div#people h3, div#people p {
color:#ffffff;
padding-left:1em;
}

Cheers,
Noah



More information about the thelist mailing list