Hello Friends, please check the bug in the following code, when I hover over on (.currency li a:hover) the child "ul" display. but when I hover over child "ul" it hides. What Happen please explain me. thanks
HTML:
<ul class="currency">
<li>
<a href="#" title=""> Currency <i class="fa fa-check"></i></a>
<ul>
<li><a href="#" title=""><i class="fa fa-dollar"> Dollar </i></a></li>
</ul>
</li>
</ul>
css:
.currency li {
position:relative;
}
.currency a {
display: inline-block;
padding: 10px 0px 12px 0px;
color: #494940;
font: 12px "Noto Sans";
}
.currency li ul {
width: 120px;
height: 80px;
position:absolute;
top: 98%;
left:0;
display:none;
background:#0FF;
}
.currency a:hover + ul {
display:block;
}