ul li{background: red;} body.home ul li.home {background: green;} body.contact ul li.contact {background: green;} body.about ul li.about {background: green;}
Where <body class="about"> is changed depending what page you are on
What's an easy way (not necessarily with jQuery) to have nav tabs be in a certain "on" state depending on which page you're on?
Here's an example: http://www.dribbble.com/
Possibly done easily with PHP? I'm not so good with PHP but am a fast learner and willing to learn.
Thanks for any help!!
about.html
The CSS
ul li{background: red;}body.home ul li.home {background: green;}
body.contact ul li.contact {background: green;}
body.about ul li.about {background: green;}
Where <body class="about"> is changed depending what page you are on
I look at this post I wrote in July and it's so trivial to me, haha.
I was such a noob.