> I normally style my IDs as follows:
>
> #footer p { } /* I don't use DIV before # */
>
> #nav { }
> #nav ul { }
> #nav ul li { }
> #nav ul li a:hover, a:active { }
I guess you mean:
#nav ul li a:hover,
#nav ul li a:active { }
> Notice that each line follows/builds from the one before to ensure
> everything is taken care of.
From: https://developer.mozilla.org/en/Writing_Efficient_CSS
"Avoid the descendant selector.
The descendant selector is the most expensive selector in CSS. It is
dreadfully expensive-especially if the selector is in the Tag or Universal
Category."
So the following may be better if you're targeting all the links in #nav:
#nav a:hover,
#nav a:active { }
--
Regards,
Thierry
www.tjkdesign.com | www.ez-css.org | @thierrykoblentz
______________________________________________________________________
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/