CSS: hover ONLY when there are two classes
I am trying to apply only the CSS: hover selector when two different classes are added to a div. I tried this, but it gets rid of the hover effect.
.accordionButton .cyan:hover{
color: cyan;
}
I can't do this either:
.accordionButton:hover, .cyan:hover{
color: cyan;
}
because I have two other colors that I am trying to do with this.
Basically, is there a way to make the CSS only apply when one is hovering over a div that is and .accordionButton AND.cyan?
+3
source to share
2 answers