Answers for "on class hover another class color change"

CSS
-1

on class hover another class color change

/* For wrapper is a child of item */
.item:hover .wrapper {
    color: #fff;
    background-color: #000;
}

/* For wrapper is another div and item is another */
.item:hover ~ .wrapper {
    color: #fff;
    background-color: #000;
}
Posted by: Guest on December-04-2020

Code answers related to "on class hover another class color change"

Browse Popular Code Answers by Language