not hover css
.element:not(:hover) {
/*Your code here*/
}
not hover css
.element:not(:hover) {
/*Your code here*/
}
css hover not working on div
/*there can be instances where the class or the id was not set well
Make sure that you have your css link well set, e.g; */
/*.class if you used class="class" */
/*#class if you use id="class"*/
.class{
background-color: blue;
}
.class:hover{
background-color: red;
}
/* OR */
#class{
background-color: blue;
}
#class:hover{
background-color: red;
}
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