Is there a way to make the CSS :hover selector work only when two different classes are attached to a div? I have tried a couple of methods, but they eliminate the hover effect. For example:
.accordionButton .cyan:hover{
color: cyan;
}
I cannot simply combine them like this:
.accordionButton:hover, .cyan:hover{
color: cyan;
}
This approach will not work for me as I have additional colors that I need to apply in a similar manner.
In essence, I am looking for a way to apply CSS styles only when hovering over a div that has both the classes .accordionButton and .cyan simultaneously. Is there a solution to achieve this?