What I'm doing is creating multiple classes for different elements one is a hover class and the other is the non hovered version. Only one or two things change between the two classes and I don't want to have to copy and paste the whole class over and change just one line.
So what I'd like to do is say have
.hoverOff {
background-color: green;
font-size: 14pt;
border: 2px;
width: 150px;
}
And then I have a hover over class
.hoverOn {
background-color: red;
}
I want to inherit everything else from the hoverOff class and only change the background color. Can I inherit with CSS like that and overide inherited styles in the new class? As it stands right now I'm simply copying the entire class, renaming it and changing one line. Seems pretty redundant and archaic to me.