how to change color of element when hovering over div
/*
to change the color of an element inside a div,
specify what element you want to change
when hovering over the div like this:
*/
.div:hover .element{
color: red;
}
how to change color of element when hovering over div
/*
to change the color of an element inside a div,
specify what element you want to change
when hovering over the div like this:
*/
.div:hover .element{
color: red;
}
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;
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us