I have a short descrption on a menu that I do not want to show until you hover over the menu. I cannot get this to work and not sure why. In my example the intended outcome is the words My Work
should be hidden initially then on hover the words My Work
become visible. The hover isn't working.
Here is a working fiddle and the code:
HTML
<ul id="sdt_menu" class="sdt_menu">
<li>
<a href="#">
<img src="images/1.jpg" alt=""/>
<span class="sdt_active"></span>
<span class="sdt_wrap">
<span class="sdt_link">Portfolio</span>
<span class="sdt_descr">My work</span>
</span>
</a>
</li>
</ul>
CSS
ul.sdt_menu li .sdt_descr{
visibility:hidden;
}
ul.sdt_menu li .sdt_descr:hover{
visibility:visible;
}
I do not mind using jQuery if that is a better solution.