On my website, I want a button to stay lit up when that particular page it is linking to it the viewed one. Here is a screenshot of what a button is like usually:
[img]http://i49.tinypic.com/9vgvp4.png[/img]
But when I go to the portfolio page .. I want that button to light up like so:
[img]http://i50.tinypic.com/22ne5h.png[/img]
I have applied two classes to the anchor tag .. but it is not working .. I don’t know why !! Can someone please help :(
Well, when you need to give an element two classes, you list it like so (no commas between classes):
"class1 class2"
And also, in your CSS, if you use "#header ul li a.current" rather than just ".current", that should fix it. Basically, that makes that particular statement more important, so it doesn’t get overwritten by other CSS statements. See http://www.smashingmagazine.com/2007/07 … ould-know/ for more info.