- This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
I have this menu
and this CSS
#nav li a {
display:block;
padding: 5px 20px;
color:#fff;
float: left;
text-decoration: none;
border-right: 1px #ccc solid;
}
#nav a:hover {
background-color:#FFFF99;
color:#000000;
}
I want that in the page Statement, the item in the menu appear with a different color than the rest, and the same thing in each different page.
Try this:
#nav li .active {
background-color:#999;
color:#3300CC
}
Thanks, that works!
I’ve seen I can mark this conversation as Solved but I can’t find the link now.
Edit the first post and check the “Solved” box :)
Done!