On Nov 8, 2013, at 5:12 PM, MiB wrote:
>
> 8 nov 2013 23.47 John D:
>
>> What is the advantage of using an ID here?
>
>
> Identifying a particular page on the site. This can be used for instance in
> descending selectors for the navigation:
>
> body#about-us-page nav li#about-us {
> /*Apply styles for current page*/
> }
>
>
> //and with class for a selections of pages:
>
> body.articles nav li#articles
>
> This is perhaps more useful in static web sites as you can change the HTML
> target elements server-side in a dynamic site.
But you dont need to do that.
body nav li#about-us {
/*Apply styles for current page*/
}
Does the same thing.
As far as I was learned you would actually do
body nav#about-us-page li#about-us {
/*Apply styles for current page*/
}
Am I missing something here? Sorry if I am being pushy.
Best,
Karl DeSaulniers
Design Drumm
http://designdrumm.com
______________________________________________________________________
css-discuss [[email protected]]
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/