Forum Moderators: not2easy
If i create a class for a menu in this way:
.sottomenu{
font-size: 9px;
COLOR: #8B8989;
text-decoration: none;
font-weight: bold;
text-transform: uppercase;
}
Then i go and create the link for this class:
A.sottomenu:link{font-size: 9px; COLOR: #8B8989; text-decoration: none;}
A.sottomenu:visited{font-size: 9px; COLOR: #8B8989; text-decoration: none;}
A.sottomenu:active{font-size: 9px; COLOR: #8B8989; text-decoration: none;}
A.sottomenu:hover{font-size: 9px; COLOR: #F18AAF; text-decoration: none; }
Now, imagine that i have lots of sottomenu classes all different coloured just in their hover state, i have create all these different styles everytime? Even if the only thing would change is the hover state?
Or is there a fastwest way?
I hope to have explained the problem clearly :)
Thanks!
.sottomenu{
font-size: 9px;
COLOR: #8B8989;
text-decoration: none;
font-weight: bold;
text-transform: uppercase;
}A.sottomenu:hover{ COLOR: #F18AAF; }