Vertical drop down menu left (HTML & CSS)
HTML code
<ul>
<li><a href="#">home</a></li>
<li><a href="#">dress</a></li>
<li><a href="#">shoes</a></li>
<li><a href="#">about us</a>
<ul>
<li><a href="#">contact us</a></li>
<li><a href="#">our social media</a></li>
<li><a href="#">our company</a></li>
</ul>
</li>
<ul>
</div>
CSS code
#menu2{
margin:0px;
padding:0px;
}
#menu2 ul{
float:left;
}
#menu2 li{
display:block;
list-style:none;
background:#404040;
border:#00CC00;
width:150px;
padding-top:10px;
padding-bottom:10px;
padding-left:30px;
position:relative;
left:-40px;
}
#menu2 ul li:hover{
background:#7A7A7A;
border-bottom:2px #DADADA dashed;
}
#menu2 a{
text-decoration:none;
color:#FFFFFF;
font-family:Arial, Helvetica, sans-serif;
font-size:20px;
}
#menu2 ul ul{
display:none;
}
#menu2 ul li:hover ul{
display:block;
position:relative;
top:-34px;
left:150px;
}
#menu2 ul ul li{
display:block;
}
Result