I would go it the PHP way.
If you want the simple HTML/CSS way, you are looking for something like this:
http://nontroppo.org/test/tab1.html
But instead of simple CSS for each, you can use your images of choice as the background. Just make sure you make the a {} the size of your images.
How this works is that on each separate HTML page, the CSS stays the same, but the "active" class changes in the HTML body itself, depending upon which page you are on. All the nonactive links are the same dormant style while the active one is different. You don't need a separate div per link, you just need to have the a{} and a:hover{} to have a specified size, the browser does the rest.
However, in this instance you can have the <li> based link structure on each HTML page, meaning if you want to change it down the road it will be an editing process per page. Also, it will be a longer processing time, but essentially unnoticeable. If you want the most efficient way, do it the PHP way. Fairly simple and useful, and doesn't require editing of each page.
Last edited by k3exige; 08-14-2009 at 04:29 AM..
|