Previous Message
Next Message

Re: [css-d] understanding contextual selectors

Sent by Nick Watts on 21 August 2002 18:06


> and for the P I would use
>
> div#vision h3 p
> no?

No. This means a paragraph that apears *within* an h3. Which doesn't really
make sense ( I doubt you'd nest your html like this: <h3><p></p></h3> ).

Valid examples would be:

div#vision ul li b {
    color: #F00;
}
Which would affect only bold list text in an unordered list...

<div id="vision">
    <ul>
        <li>This is regular</li>
        <li><b>This will be red </b></li>
        <li>Back to normal</li>
    </ul>
</div>

regards

Nick Watts
Coldmountain
~~~~~~~~~~~~~~~
Previous Message
Next Message

Possibly related: