can I highlight the menu item of the actually displayed page?

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
dominik2883

can I highlight the menu item of the actually displayed page?

Post by dominik2883 »

Hello!

I want to make it easier for people to see where they are. Can I highlight the menu entry of the page which is acutally displayed (i.e. different background color)? If yes, what do I have to change?

Thanks in advance for your help!
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: can I highlight the menu item of the actually displayed page?

Post by tsw »

Yes you can

Code: Select all

#menu li a.active {
background-color:pink;
}
and check that html output has that class for menu items...
dominik2883

Re: can I highlight the menu item of the actually displayed page?

Post by dominik2883 »

I tried that already. But the "a active" tag just highlights the link as long as I hold the mouse button down. But it doesn't remain highlighted...
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: can I highlight the menu item of the actually displayed page?

Post by tsw »

a:active and a.active are two different things
Locked

Return to “Layout and Design (CSS & HTML)”