View Full Version : css and the body tag

05-27-2010, 11:10 AM

I have a side menu where I have set the properties for li as I wish and also for "a:hover" and "a"

I want it so when the use clicks on a page for example <body class="home"> it the hover over color will remain on.

I know it will be doing something with the body class but I just can't seem to grasp it and any help in the right direction will be greatly appreciated.


05-27-2010, 01:26 PM
If you look at this program of mine, you will find that a selected item remains it's red colour. This is I believe because the event is recorded in the Cache. I know it is a long shot as it happened to me without any intent on my part.

Won't cost anything to look anyway.

It's here. (http://www.exitfegs.co.uk/Sources.html)


05-27-2010, 05:59 PM
Hello SteveDD,
Here's a few example of menus that highlight the page your on. They all use the same method of id'ing the page with the body tag ...

one (http://nopeople.com/CSS/h_ul_menu-with_images/index.html)
two (http://nopeople.com/CSS/h_ul_menu_no_images/index.html)
three (http://nopeople.com/CSS/css%20rollover%20navbar%20with%20single%20image/index.html)