I want a div to disappear on hover over a different div, purely with CSS. So I have two divs
<div class="" id="target">I will disappear</div>
<div class="hover_box">Hover me</div>
and my SCSS:
#target {
background-color: blue;
height: 100px;
width: 100px;
}
.hover_box {
background-color: red;
height: 100px;
width: 100px;
&:hover #target{
display: none !important;
/* background-color: green !important; */
}
}
However, it does not work. See here: