I have a group of CSS “buttons”, and they all have the same rollover effect. A basic text color change. The only thing I want to do is change the starting
text color (the color of the text in the “link” or normal stage) of one of the buttons, but it would still have the same rollover effect as the rest of the buttons.
Is there a way to do this without defining an entirely new class wich would only have one field changed? This way I wouldn’t need all the redundent code.
Thank you, and Here is the code:
a.button:link, a.button:visited, a.button:active
{
display:block;
width:100px;
height:30px;
float:left;
color: #063AA0;
background: #CCCCCC center center;
text-decoration: none;
text-align:center;
padding: 0.2em;
border: 4px solid;
border-color: #dfdfdf #6e6e6e #6b6b6b #dadada;
font-weight: bolder;
font-family: Arial, Helvetica, sans-serif;
font-size: 16px;
line-height: 1.4em;
overflow: hidden;
}
a.button:hover {
color: #fff;
border-color: #6b6b6b #dadada #dfdfdf #6e6e6e;
}