[thelist] css descendant selector confusion

neal at constructweb.com neal at constructweb.com
Mon Feb 4 18:45:37 CST 2008


yoyu have all p's set to white

div#people p {color:#fff;}
to target only those p's that have a container with an id of people

~n


> This is giving me white text in all <p>s, not just those in the people
> div.
>
> Do I have the descendant selectors wrong or is it something else?
>
>     body,td,th {
>     color: #333333;
>     font-family:'arial narrow',sans-serif;
>     }
>
>     div#people h2,h3,p {
>     color:#ffffff;
>     padding-left:1em;
>     }
>
> A sample page:
>
>     http://www.hardistyconstruction.com/2008_new/services.php
>
> CSS:
>
>     http://www.hardistyconstruction.com/2008_new/styles/main.css
>
> thankies
>
> joel
> --
>
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>


"I am not going to question your opinions. I am not going to meddle with
your belief. I am not going to dictate to you mine. All that I say is,
examine, inquire. Look into the nature of things. Search out the grounds of
your opinions, the for and the against. Know why you believe, understand
what you believe, and possess a reason for the faith that is in you."

-- Frances Wright, Divisions of Knowledge,




More information about the thelist mailing list