On Sun, Nov 4, 2012 at 7:23 AM, Koen van der Drift
<koenvanderdr...@gmail.com> wrote:
> Consider the following html5 and css code:
>
<snip>
> <body>
>                 <article>
>                                 <ul class="test">
>                                 <li>one</li>
>                                 <li>two</li>
>                                 </ul>
>                 </article>
> </body>
> </html>
>
>
> main.css:
>
> .test ul
> {
>         list-style: disc;
> }
>
By using the selector ".test ul", you are mistakenly targeting the ul
child of some element styled with class "test". But you want to target
the ul element that itself bears the class "test", so the proper
selector is "ul.test".

-- 
Regards,

Beth Lee
callibeth.com
______________________________________________________________________
css-discuss [css-d@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