I am currently working on a navigation project.
Below is the CSS styling for it:
a:link.navA, a:visited.navA
{
display:block;
width:120px;
color:#FFFFFF;
background-color:#003366;
text-align:center;
padding:4px;
text-decoration:none;
font-family:Calibri;
}
a:hover.navA
{
background-color:#336699;
}
.selected
{
background-color:#336699;
}
My issue arises when I try to set a different background-color for the selected button. Using addClass("selected")
does not achieve the desired effect as both classes "navA" and "selected" define the background-color property. My question is how can I make the selected class take precedence over the navA class.
Thank you!