Home › Forums › CSS › Using 2 classes. › Reply To: Using 2 classes.
November 17, 2015 at 4:48 am
#234973
murko
Participant
Do you meen like this Atelierbram:
/*The ones that support me*/
.ft-staff-supporter ~ a {
color:red;
background-color:#cdcdcd;
}
/*The ones I support*/
.ft-staff-supported ~ a {
color:blue;
background-color:#cdcdcd;
}
/*The ones I support AND support me back*/
.ft-staff-supporter.ft-staff-supported ~ a {
color:green !important;
background-color:#cdcdcd !important;
}
If so, that didn’t do the trick either, sorry to say.
Since none of these classes actually have color or bg-color in the original CSS I guess I don’t need the declaration !important at all really.
It was force of habit that put them there I guess :)
Maybe I just understood this feature about using double classes like this wrong.