Call (877) SITE-OPT (748-3678)

Code: Body ID/Class Method

From Chapter 7: CSS Optimization

To accomplish the same effect with the body ID/class method, you would first label each page with a class in the body tag:

<body class="executive">

Then you'd use a compound descendant selector to display the appropriate menu, like this:

.strategic .one, .executive .three, .sales .five... {display:list-item;}
Copyright © 2002-2018 Website Optimization, LLC. All Rights Reserved - Free website speed test - Privacy Policy
Last modified: February 19, 2009.

Follow us on: Twitter, Google+, Facebook, Linked In