focurious
05-08-2011, 08:23 AM
My CSS code is as follows:
body {background-color: #F2F2F2;}
.buttonmenu1 ul{
padding: 2px 0;
margin-left: 0;
margin-top: 1px;
margin-bottom: 0;
font: 22px "Palatino Linotype", "Book Antiqua", Palatino, serif;
list-style-type: none;
text-align: center; /*set to left, center, or right to align the menu as desired*/
}
.buttonmenu1 li{
display: inline;
margin: 1;
margin-bottom:20;
}
.buttonmenu1 li a{
height: 1%;
text-decoration: none;
padding: 5px 7px;
margin-right: 0px;
color: WHITE;
background: #006;
border-radius: 5px; /*w3c border radius*/
box-shadow: 1px 1px 1px rgba(0,0,0,.5); /* w3c box shadow */
-moz-border-radius: 5px; /* mozilla border radius */
-moz-box-shadow: 1px 1px 2px rgba(0,0,0,.5); /* mozilla box shadow */
background: -moz-linear-gradient(center top, #357cbd 50%, #006 50%, #72a6d4); /* mozilla gradient background */
-webkit-border-radius: 5px; /* webkit border radius */
-webkit-box-shadow: 1px 1px 2px rgba(0,0,0,.5); /* webkit box shadow */
background: -webkit-gradient(linear, center top, center bottom, color-stop(50%, #357cbd), color-stop(50%, #006), to(#72a6d4)); /* webkit gradient background */
filter:
progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#72a6d4', endColorstr='#006'); /* IE6 & IE7 */
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#72a6d4', endColorstr='#006)"; /* IE8 */
}
.buttonmenu1 li a:hover{
height: 1%;
color: #EBEBEB;
-moz-border-radius: 5px; /* mozilla border radius */
-moz-box-shadow: 1px 1px 0px rgba(0,0,0,.5); /* mozilla box shadow */
background: -moz-linear-gradient(center top, #255684 50%, #000059 50%, #507594); /* mozilla gradient background */
-webkit-border-radius: 5px; /* webkit border radius */
-webkit-box-shadow: 1px 1px 0px rgba(0,0,0,.5); /* webkit box shadow */
background: -webkit-gradient(linear, center top, center bottom, color-stop(50%, #255684), color-stop(50%, #000059), to(#507594)); /* webkit gradient background */
}
.buttonmenu1 li a:active{
height: 1%;
color: #EBEBEB;
-moz-border-radius: 5px; /* mozilla border radius */
-moz-box-shadow: inset 3px 3px 3px black; /* mozilla box shadow */
background: -moz-linear-gradient(center top, #255684 50%, #000059 50%, #507594); /* mozilla gradient background */
-webkit-border-radius: 5px; /* webkit border radius */
-webkit-box-shadow: inset 3px 3px 3px black; /* webkit box shadow */
background: -webkit-gradient(linear, center top, center bottom, color-stop(50%, #255684), color-stop(50%, #000059), to(#507594)); /* webkit gradient background */
}
My HTML code is as follows:
<html>
<link href="CSS.css" rel="stylesheet" type="text/css">
<div class="buttonmenu1">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">How it works</a></li>
<li><a href="#">Media</a></li>
<li><a href="#">Where to buy</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
</div>
<br />
</html>
What it looks like:
http://img853.imageshack.us/img853/6442/mymenubar.jpg
When mouse hover over 'Media' button:
http://img196.imageshack.us/img196/29/mymenubarhover.jpg
How do I modify my current menu bar in terms of structure to something like zappos.com?
I want all the buttons to be together in 1 bar instead of individually separated. And there will be a line separator between the buttons.
Any constructive suggestion is most welcome!
Thanks in advance!
body {background-color: #F2F2F2;}
.buttonmenu1 ul{
padding: 2px 0;
margin-left: 0;
margin-top: 1px;
margin-bottom: 0;
font: 22px "Palatino Linotype", "Book Antiqua", Palatino, serif;
list-style-type: none;
text-align: center; /*set to left, center, or right to align the menu as desired*/
}
.buttonmenu1 li{
display: inline;
margin: 1;
margin-bottom:20;
}
.buttonmenu1 li a{
height: 1%;
text-decoration: none;
padding: 5px 7px;
margin-right: 0px;
color: WHITE;
background: #006;
border-radius: 5px; /*w3c border radius*/
box-shadow: 1px 1px 1px rgba(0,0,0,.5); /* w3c box shadow */
-moz-border-radius: 5px; /* mozilla border radius */
-moz-box-shadow: 1px 1px 2px rgba(0,0,0,.5); /* mozilla box shadow */
background: -moz-linear-gradient(center top, #357cbd 50%, #006 50%, #72a6d4); /* mozilla gradient background */
-webkit-border-radius: 5px; /* webkit border radius */
-webkit-box-shadow: 1px 1px 2px rgba(0,0,0,.5); /* webkit box shadow */
background: -webkit-gradient(linear, center top, center bottom, color-stop(50%, #357cbd), color-stop(50%, #006), to(#72a6d4)); /* webkit gradient background */
filter:
progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#72a6d4', endColorstr='#006'); /* IE6 & IE7 */
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#72a6d4', endColorstr='#006)"; /* IE8 */
}
.buttonmenu1 li a:hover{
height: 1%;
color: #EBEBEB;
-moz-border-radius: 5px; /* mozilla border radius */
-moz-box-shadow: 1px 1px 0px rgba(0,0,0,.5); /* mozilla box shadow */
background: -moz-linear-gradient(center top, #255684 50%, #000059 50%, #507594); /* mozilla gradient background */
-webkit-border-radius: 5px; /* webkit border radius */
-webkit-box-shadow: 1px 1px 0px rgba(0,0,0,.5); /* webkit box shadow */
background: -webkit-gradient(linear, center top, center bottom, color-stop(50%, #255684), color-stop(50%, #000059), to(#507594)); /* webkit gradient background */
}
.buttonmenu1 li a:active{
height: 1%;
color: #EBEBEB;
-moz-border-radius: 5px; /* mozilla border radius */
-moz-box-shadow: inset 3px 3px 3px black; /* mozilla box shadow */
background: -moz-linear-gradient(center top, #255684 50%, #000059 50%, #507594); /* mozilla gradient background */
-webkit-border-radius: 5px; /* webkit border radius */
-webkit-box-shadow: inset 3px 3px 3px black; /* webkit box shadow */
background: -webkit-gradient(linear, center top, center bottom, color-stop(50%, #255684), color-stop(50%, #000059), to(#507594)); /* webkit gradient background */
}
My HTML code is as follows:
<html>
<link href="CSS.css" rel="stylesheet" type="text/css">
<div class="buttonmenu1">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">How it works</a></li>
<li><a href="#">Media</a></li>
<li><a href="#">Where to buy</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
</div>
<br />
</html>
What it looks like:
http://img853.imageshack.us/img853/6442/mymenubar.jpg
When mouse hover over 'Media' button:
http://img196.imageshack.us/img196/29/mymenubarhover.jpg
How do I modify my current menu bar in terms of structure to something like zappos.com?
I want all the buttons to be together in 1 bar instead of individually separated. And there will be a line separator between the buttons.
Any constructive suggestion is most welcome!
Thanks in advance!