CSS Drop Down Menu Sederhana
HTML
<nav class='drop-menu'>
Drop Down Menu
<ul>
<li><a href='#'>Home</a></li>
<li><a href='#'>About</a></li>
<li><a href='#'>Portfolio</a></li>
<li><a href='#'>Contact</a></li>
<li><a href='#'>Archive</a></li>
<li><a href='#'>Search</a></li>
<li><a href='#'>Company</a></li>
</ul>
</nav>
CSS
nav.drop-menu {
position:relative;
padding:10px 15px;
background:#6D92A5;
width:200px;
font:bold 12px Arial,Sans-Serif;
text-transform:uppercase;
color:#eee;
}
nav.drop-menu:after {
content:"";
width:0px;
height:0px;
border:5px solid transparent;
border-top-color:#fff;
position:absolute;
top:16px;
right:14px;
}
nav.drop-menu ul {
position:absolute;
top:100%;
left:0px;
z-index:99;
text-transform:none;
margin:0px;
padding:0px;
background:#6D92A5;
width:100%;
font-weight:normal;
display:none;
}
nav.drop-menu li {
list-style:none;
margin:0px;
padding:0px;
}
nav.drop-menu li a {
display:block;
margin:0px;
padding:7px 15px;
text-decoration:none;
color:#ccc;
}
nav.drop-menu li a:hover {
background:#74838F;
padding-left:19px;
}
nav.drop-menu:hover ul {
display:block;
}
Lainnya
Labels: Potongan
3 Comments:
saya coba kok tidak sesuai dengan harapan?
By Unknown, at Sunday, September 9, 2012 at 3:32:00 AM GMT+7
:-bd makasih ^_^
By Unknown, at Wednesday, November 14, 2012 at 9:18:00 AM GMT+7
terima kasih infonya.
By Anonymous, at Monday, December 17, 2012 at 9:06:00 PM GMT+7
Post a Comment
<< Home