I want to change the color of div(#panel) when I hover the button(#button) that inside in div(#left). Is it possible?
#left #button:hover~#panel {
background-color: blue;
}
#panel {
position: absolute;
float: right;
left: 37.5%;
width: 50%;
height: 5px;
background-color: rgb(180, 30, 30);
}
<div id="left">
<button id="button">Topics</button>
</div>
<div id="panel"></div>