4 Attachment(s)
Basic horizontal menu color changing
Hi, I don't really know anything about web coding...
With current coding the "Home" menu section is always red. I want the color of the menu section to be red on the menu that people clicked.
I was trying to change the menu color depending on the web page. But I can't find the way to do it. Please help.
I am attaching the files
Attachment 60774Attachment 60775Attachment 60776Attachment 60777
Code CSS:
/* Let's import the lovely google font, please keep this line at the top of your stylesheet */
@import url([url]http://fonts.googleapis.com/css?family=Capriola);[/url]
/* Menu CSS */
#cssmenu, #cssmenu ul, #cssmenu ul li, #cssmenu ul li a{
padding: 0;
margin: 0;
line-height: 1;
font-family: 'Capriola', sans-serif;
}
#cssmenu:before, #cssmenu:after, #cssmenu > ul:before, #cssmenu > ul:after {
content: '';
display: table;
}
#cssmenu:after, #cssmenu > ul:after {
clear: both;
}
#cssmenu {
zoom:1;
height: 69px;
background: url(images/bottom-bg.png) repeat-x center bottom;
border-radius: 2px;
}
#cssmenu ul{
background: url(images/nav-bg.png) repeat-x 0px 4px;
height: 69px;
}
#cssmenu ul li{
float: left;
list-style: none;
}
#cssmenu ul li a{
display: block;
height: 37px;
padding: 22px 30px 0;
margin: 4px 2px 0;
border-radius: 2px 2px 0 0;
text-decoration: none;
font-size: 15px;
color: white;
text-shadow: 0 1px 1px rgba(0, 0, 0, .75);
font-weight: 400;
opacity: .9;
}
#cssmenu ul li:first-child a{
margin: 4px 2px 0 0;
}
#cssmenu ul li a:hover, #cssmenu ul li.active a{
background: url(images/color.png) center bottom;
display: block;
height: 37px;
margin-top: 0px;
padding-top: 26px;
color: #600000;
text-shadow: 0 1px 1px rgba(255, 255, 255, .35);
opacity: 1;
}