on class hover another class color change

75

/* 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;
}

Comments

Submit
0 Comments