Untuk Menyingkat Waktu , Lagsung Saja Kita Mulai ..
CSS
#menu-bar {
width: 95%;
margin: 0px 0px 0px 0px;
padding: 5px 15px 1px 6px;
height: 34px;
line-height: 100%;
border-radius: 22px;
-webkit-border-radius: 22px;
-moz-border-radius: 22px;
box-shadow: 2px 2px 3px #666666;
-webkit-box-shadow: 2px 2px 3px #666666;
-moz-box-shadow: 2px 2px 3px #666666;
background: #8B8B8B;
background: linear-gradient(top, #4F4947, #CFFAAF);
background: -ms-linear-gradient(top, #4F4947, #CFFAAF);
background: -webkit-gradient(linear, left top, left bottom, from(#4F4947), to(#CFFAAF));
background: -moz-linear-gradient(top, #4F4947, #CFFAAF);
border: solid 2px #FFFFFF;
position:relative;
z-index:999;
}
#menu-bar li {
margin: 0px 6px 0px 6px;
padding: 0px 0px 6px 0px;
float: left;
position: relative;
list-style: none;
}
#menu-bar a {
font-weight: bolder;
font-family: 'comic sans ms';
font-style: normal;
font-size: 25px;
color: #E7E5E5;
text-decoration: none;
display: block;
padding: 6px 20px 6px 20px;
margin: 0;
border-radius: 50px;
-webkit-border-radius: 50px;
-moz-border-radius: 50px;
text-shadow: 2px 2px 3px #000000;
}
#menu-bar .active a, #menu-bar li:hover > a {
background: #0399D4;
background: linear-gradient(top, #2FEBA0, #A1A1A1);
background: -ms-linear-gradient(top, #2FEBA0, #A1A1A1);
background: -webkit-gradient(linear, left top, left bottom, from(#2FEBA0), to(#A1A1A1));
background: -moz-linear-gradient(top, #2FEBA0, #A1A1A1);
color: #440A08;
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
text-shadow: 2px 2px 3px #FFFFFF;
}
#menu-bar ul li:hover a, #menu-bar li:hover li a {
background: none;
border: none;
color: #666;
-box-shadow: none;
-webkit-box-shadow: none;
-moz-box-shadow: none;
}
#menu-bar ul a:hover {
background: #3DD42D !important;
background: linear-gradient(top, #55EC7D, #26948D) !important;
background: -ms-linear-gradient(top, #55EC7D, #26948D) !important;
background: -webkit-gradient(linear, left top, left bottom, from(#55EC7D), to(#26948D)) !important;
background: -moz-linear-gradient(top, #55EC7D, #26948D) !important;
color: #FFFFFF !important;
border-radius: 0;
-webkit-border-radius: 0;
-moz-border-radius: 0;
text-shadow: 2px 2px 24px #FFFFFF;
}
#menu-bar ul {
background: #2FDD14;
background: linear-gradient(top, #FFFFFF, #FFFFFF);
background: -ms-linear-gradient(top, #FFFFFF, #FFFFFF);
background: -webkit-gradient(linear, left top, left bottom, from(#FFFFFF), to(#FFFFFF));
background: -moz-linear-gradient(top, #FFFFFF, #FFFFFF);
display: none;
margin: 0;
padding: 0;
width: 185px;
position: absolute;
top: 34px;
left: 0;
border: solid 1px #B4B4B4;
border-radius: 10px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
-webkit-box-shadow: 2px 2px 3px #222222;
-moz-box-shadow: 2px 2px 3px #222222;
box-shadow: 2px 2px 3px #222222;
}
#menu-bar li:hover > ul {
display: block;
}
#menu-bar ul li {
float: none;
margin: 0;
padding: 0;
}
#menu-bar ul a {
padding:10px 0px 10px 15px;
color:#424242 !important;
font-size:16px;
font-style:normal;
font-family:arial;
font-weight: normal;
text-shadow: 2px 2px 3px #FFFFFF;
}
#menu-bar ul li:first-child > a {
border-top-left-radius: 10px;
-webkit-border-top-left-radius: 10px;
-moz-border-radius-topleft: 10px;
border-top-right-radius: 10px;
-webkit-border-top-right-radius: 10px;
-moz-border-radius-topright: 10px;
}
#menu-bar ul li:last-child > a {
border-bottom-left-radius: 10px;
-webkit-border-bottom-left-radius: 10px;
-moz-border-radius-bottomleft: 10px;
border-bottom-right-radius: 10px;
-webkit-border-bottom-right-radius: 10px;
-moz-border-radius-bottomright: 10px;
}
#menu-bar:after {
content: ".";
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}
#menu-bar {
display: inline-block;
}
html[xmlns] #menu-bar {
display: block;
}
* html #menu-bar {
height: 1%;
}
HTML
<ul id="menu-bar">
<li class="active"><a href="#">Home</a></li>
<li><a href="#">Products</a>
<ul>
<li><a href="#">Products Sub Menu 1</a></li>
<li><a href="#">Products Sub Menu 2</a></li>
<li><a href="#">Products Sub Menu 3</a></li>
<li><a href="#">Products Sub Menu 4</a></li>
</ul>
</li>
<li><a href="#">Services</a>
<ul>
<li><a href="#">Services Sub Menu 1</a></li>
<li><a href="#">Services Sub Menu 2</a></li>
<li><a href="#">Services Sub Menu 3</a></li>
<li><a href="#">Services Sub Menu 4</a></li>
</ul>
</li>
<li><a href="#">About</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
No comments:
Post a Comment
Khusus untuk membalas komentar disarankan menggunakan tombol balas di samping komentar terkait dibandingkan menggunakan formulir komentar di bawah agar komunikasi lebih terstruktur. Karena mungkin,
apa yang Anda tanyakan/katakan saat ini akan sangat bermanfaat bagi pembaca lain.Terimakasih !