This is my code , and running well, but my problem is in the css file, i know the "display" css properties very well and how it work but below code actually it is a dropdown manu code, {display:none} means nothing will show, and {display:block} is used for only inline elements. Now my Question is for which hidden properties of display when i hovering to DropDown button it will show me the manu,s?
#o2 li a{ background-color: burlywood}
ul li{
list-style-type: none;
position: absolute;
}
ul li a{
text-decoration: none;
display: block;
}
#o2 li:hover .mainbtn{
background-color: yellow;
}
#o2 li .dpbtn{
display: none;
}
#o2 li:hover .dpbtn{
display: block;
}
<ul id="o2">
<li><a class="mainbtn" href="#">DropDown</a>
<div class="dpbtn">
<a href="#">manu1</a>
<a href="#">manu1</a>
<a href="#">manu1</a>
</div>
</li>
</ul>
