I've been trying to get a overflow box to show up only when hovering over inside a certain part of the text inside a list. It works, but for some reason it makes the other li disappear. This is my code:
#firstid {
text-decoration: underline;
color: olivedrab;
}
#secondid {
display: none;
background-color: lightblue;
width: 110px;
height: 110px;
overflow: auto;
}
#firstid:hover~#secondid {
display: block;
}
<ol>
<li>
<a id="firstid">Text</a>
<a id="secondid">Text</a>
</li>
<li>Text</li>
</ol>
It works correctly, but what should come after that in my list disappears. It's probably because of some stupid mistake, but I've been stuck on that for a while and couldn't find the answer online. Any help would be really apreciated appreciated (: