Answers for "how to put hover in html css element"

CSS
45

on hover css

/* Changes an element's color on hover */

.selector {
	background-color: black;
}

.selector:hover {
	background-color: blue;
}
Posted by: Guest on February-15-2020
-1

how to hover div in css

<div class="casual-div"></div>

.casual-div:hover {
  background-color: red;
}
Posted by: Guest on October-29-2021

Code answers related to "how to put hover in html css element"

Browse Popular Code Answers by Language