Le 20 sept. 2013 à 10:06, John <j...@coffeeonmars.com> a écrit : > Philippe: why can nav ul li be simplified to nav li?
(in addition to what Chris Rockwell mentioned) Both selectors basically target the same element; 'nav li' has some advantages, such as less work to type (and thus slightly reduce the bloat in a stylesheet) and faster to read; it is faster to parse for the browser, it doesn't have such a high specificity (high specificity is something ok when you really, really need it). In a similar fashion, your 'nav ul li a' in another thread could easily be written as 'nav a'. Philippe -- Philippe Wittenbergh http://l-c-n.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/