When displaying a div on hover, how can you target a specific div? I need to display a hidden div from a link is on top of the page, and I can't figure out how. When i tested, if the link and the div are one after the other, it displays corectly. but if i add another link before the first one, it does not work anymore. From my testing using this CSS:
.expandable{
display: none;
}
.expand:hover+.expandable{
display:inline !important;
}
.expandable:hover{
display:inline !important;
}
And this HTML:
<div class="expand">expand</div> <!--this does not do anithing-->
<div class="expand">expand</div> <!--this works-->
<div class="expandable">expandable</div>