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. ______________________________________________________________________ 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/