Answers for "html how to hover over div"

CSS
1

can you control another div on hover css

#a:hover + #b {
    background: #ccc
}

<div id="a">Div A</div>
<div id="b">Div B</div>
Posted by: Guest on July-21-2021
-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

Browse Popular Code Answers by Language