I have two divs. I want to change style an element inside a div, when hover an element inside another div.
In the next example I want to show more
when hover over h3
It's possible only with css?
See example:
.alpha {
position:relative;
background-color:red;
width:100px;
height:50px;
}
.alpha .more {
position:absolute;
top:40%;
left:40%;
display:none
}
.beta {}
.beta h3:hover + .alpha .more {
display:block;
}
<div class="alpha">
<span class="more">Hello</span>
</div>
<div class="beta">
<h3>Make hover</h3>
</div>