I want to display an item (container) when hovering on the a tag, like some sort of sub-menu. However I don't know why the CSS display rule doesn't seem to work.
<a href="#" class="link">LINK</a>
<div>
<h1>test</h1>
</div>
<style>
div {display: none;}
a:hover div {display: block;}
.link:hover div {display: block !important;}
</style>