How do create a styleClass for the following CSS? I want it only to be used in one particular section of the form – the tabbed menu – and not affect anything else. If I leave it as is, everything on the form is affected by it.
a:link,a:visited
{
display:block;
width:120px;
font-weight:bold;
color:#ffffff;
background-color:#5576A7;
text-align:center;
padding:4px;
text-decoration:none;
text-transform:uppercase;
}
a:hover,a:active
{
background-color:#ff9c2a;
}
You need to add a
classto your link, and reference that in your CSS.With the markup:
And with the CSS: