Sent by Jon Prindiville on 7 February 2005 17:05
Jared Stein [EMAIL-REMOVED]> wrote:
> Now, this doesn't work:
>
> <style type="text/css">
> #nav li { border: 1px solid #000 }
> #home { border-bottom: none }
> </style>
[snip]
> But this does:
>
> <style type="text/css">
> #nav li { border: 1px solid #000 }
> li#home { border-bottom: none }
> </style>
I could be mistaken, but it looks to me like in the first snippet you
posted the #home rule is not applied because while both rules match
the target, but the first is more specific. Check the CSS spec. on
this issue [1],
Jon
[1] http://www.w3.org/TR/REC-CSS1#cascading-order
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/