...

View Full Version : css and the body tag



SteveDD
05-27-2010, 10:10 AM
Hi

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.

thanks

effpeetee
05-27-2010, 12: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)

Frank

Excavator
05-27-2010, 04: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)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum