--- On Mon, 8/3/09, Dermot Ward <dermotw...@eircom.net> wrote:

Hi Dermot,

> .class {
>     font-weight: bold;
> }

Do you REALLY mean this? That selector will only match HTML elements with a 
class of 'class' - e.g. <li class="class"> - is that really what you intended?

> <ul>
>     <li class="one">One</li>
>         <ul>
>             <li class="two">One A</li>
>             <li class="two">One B</li>
>             <li class="two">One C</li>
>         </ul>
> </ul>

Notice how, on the third line, your indent doesn't quite match your structure - 
this is a warning sign! Your <ul> should be inside a <li>; <li> is the only 
valid child element of a <ul>, so the above won't validate. You need something 
like:

<ul>
    <li class="one">One</li>
    <li>
        <ul>
            <li class="two">One A</li>
            <li class="two">One B</li>
            <li class="two">One C</li>
        </ul>
    </li>
</ul>

- Bobby
______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to