View Full Version : css current page
neilkw
08-29-2006, 10:26 AM
good morning,
I want to change the background colour on a block element when it is is currently being viewed.
Can CSS style the Menu link for the current page?
thanks
mwinter
08-29-2006, 10:42 AM
I want to change the background colour on a block element when it is is currently being viewed.
If that's a separate issue to the one below, define "currently".
Can CSS style the Menu link for the current page?
Yes, if that element can be uniquely selected. See a previous post of mine for possible options (http://www.dynamicdrive.com/forums/showpost.php?p=32362&postcount=3).
Mike
neilkw
08-29-2006, 01:31 PM
ok, defined:
I have a horizontal menu consisting of 6 category links, (home, accessories, baths, suites, showers, taps) which are set as block elements with borders and bg colours, each category contains around 20 products which I plan to sell online. I wish to inform the user which section they are currently viewing by changing the background colour of the link.
mwinter
08-29-2006, 01:57 PM
Then as far as I can see, the post I linked to in my previous post should apply. Did you read it? Does it help? If not, why not? (Did you spot the typo in the sample markup? :)).
Mike
NXArmada
08-29-2006, 01:59 PM
Check out Setting the current menu state with CSS (http://www.456bereastreet.com/archive/200503/setting_the_current_menu_state_with_css/) by 456 Berea Street. It will explain what you are trying to do.
neilkw
08-29-2006, 04:24 PM
cheers guys
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.