I have a menu links and by default one of them is hidden. I'm trying to change its display when hovering some other menu link.
HTML:
<ul>
<li><a href="#">Link 1</a></li>
<li><a href="#">Hover me</a></li>
<li><a href="#">I'm here</a></li>
</ul>
CSS:
ul li:nth-child(3) {
display: none;
}
ul li:nth-child(2):hover ~ ul li:nth-child(3) {
display: block;
}
What I'm doing wrong?