Forum Moderators: not2easy
I would like to do this for all the buttons on the browser, and have the CSS, change the image to the darker image button when on different defined pages.
I hope this makes sense!
Any help greatly appreicated,
Thanks in advance,
Ian
One way of doing this is creating a new id for the li property.
e.g.
li a {background-color: lightGreen;} /* Naturally the lightGreen is replaced by the actually color setting */
and
li#current a {background-color: darkGreen;} /* darkGreen replaced by the actually color setting */
I would then use a bit of php so basically saying if a certain page is called then instead of calling <li> we call <li id="current">