Answers for "hover and change other class css"

CSS
-1

css hover change other element

#container:hover > #cube { background-color: yellow; }
Posted by: Guest on August-12-2020
-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

Browse Popular Code Answers by Language