This works for me.
First create unique id styles for the <body> tag and unique style classes for the a selector such as:
CSS
Code:
#company a.company, #services a.services, #resources a.resources,
#media a.media, #contact a.contact, #careers a.careers {color: #rgb; background: url(pic.jpg) no-repeat; ...}
Then code the each page's <body> HTML tag such as:
HTML for company page
Code:
<body id="company">
HTML for services page
Code:
<body id="services">
And so on.
Use the following for your list:
HTML
Code:
<ul>
<li><a href="#" title="title goes here." class="company"><span>Company</span></a></li>
<li><a href="#" title="title goes here." class="services"><span>Services</span></a></li>
<li><a href="#" title="title goes here." class="resources"><span>Resources</span></a></li>
<li><a href="#" title="title goes here." class="media"><span>Media</span></a></li>
<li><a href="#" title="title goes here." class="contact"><span>Contact</span></a></li>
<li><a href="#" title="title goes here." class="careers"><span>Careers</span></a></li>
</ul>
This way on the company page, the company link will highlight that the company page is current, and so on. You can split the styles if needed and use PHP for includes.
Bookmarks