Last but not least, the final menu! This one is a little more involved because it has a lighting effect.
Here I used the standard menu HTML but included a <div> of class lighting within each navigation item.<div class = 'navItem'>
<div class = 'lighting'></div>
<table><tr><td height = '40px'></td><td><span>Contact</span></td></tr></table>
</div>
For the lighting, I used a half circle is hidden below the menu with a wide, light yellow shadow.
Below is the CSS specific to this example.div.navItemBlock5 {
width: 400px;
height: 40px;
padding: 0 0 0 0;
margin: 0 0 0 0;
background: -moz-linear-gradient(top, #aff, #9cc);
background: -webkit-gradient(linear, top top, bottom bottom, #aff, #9cc);
border: 1px solid #666;
-moz-border-radius: 20px 20px 0 0;
border-radius: 20px 20px 0 0;
-moz-box-shadow: 0 0 2px 0 #000;
-webkit-box-shadow: 0 0 2px 0 #000;
box-shadow: 0 0 2px 0 #000;
}
div.navItemBlock5 div.navItemFirst {
float: left;
width: 98px;
height: 40px;
margin: 0 0 0 0;
padding: 0 0 0 0;
color: #333;
cursor: pointer;
border-left: 1px solid #cff;
border-right: 1px solid #699;
-moz-border-radius: 20px 0 0 0;
border-radius: 20px 0 0 0;
}
div.navItemBlock5 div.navItem {
float: left;
width: 98px;
height: 40px;
margin: 0 0 0 0;
color: #333;
cursor: pointer;
border-left: 1px solid #cff;
border-right: 1px solid #699;
}
div.navItemBlock5 div.navItemLast {
float: left;
width: 98px;
height: 40px;
margin: 0 0 0 0;
padding: 0 0 0 0;
color: #333;
cursor: pointer;
border-left: 1px solid #cff;
border-right: 1px solid #699;
-moz-border-radius: 0 20px 0 0;
border-radius: 0 20px 0 0;
}
div.navItemBlock5 div.navItem:hover, div.navItemBlock5 div.navItemFirst:hover, div.navItemBlock5 div.navItemLast:hover {
-moz-box-shadow: inset 0 -1px 2px 0 #000;
-webkit-box-shadow: inset 0 -1px 2px 0 #000;
box-shadow: inset 0 -1px 2px 0 #000;
background: -moz-linear-gradient(top, #9dd, #699);
background: -webkit-gradient(linear, top top, bottom bottom, #9dd, #699);
overflow: hidden;
padding: 0 1px 0 1px;
border: 0px;
}
div.navItemBlock5 div.navItemSelected {
-moz-box-shadow: inset 0 -1px 2px 0 #000;
-webkit-box-shadow: inset 0 -1px 2px 0 #000;
box-shadow: inset 0 -1px 2px 0 #000;
background: -moz-linear-gradient(top, #9dd, #699);
background: -webkit-gradient(linear, top top, bottom bottom, #9dd, #699);
overflow: hidden;
padding: 0 1px 0 1px;
border: 0px;
}
div.navItemBlock5 div.navItemSelected div.lighting {
position: relative;
top: 40px;
left: 30px;
width: 40px;
height: 10px;
margin: 0 0 -10px 0;
background: #000;
-moz-border-radius: 20px 20px 0 0;
border-radius: 20px 20px 0 0;
-moz-box-shadow: 0 0 20px 5px #ffc;
-webkit-box-shadow: 0 0 20px 5px #ffc;
box-shadow: 0 0 20px 5px #ffc;
}
div.navItemBlock5 div.navItem span, div.navItemBlock5 div.navItemFirst span, div.navItemBlock5 div.navItemLast span {
font-family: "Lucida Grande";
font-size: 12px;
text-align: center;
text-shadow: 0 1px 1px #fff;
}
Comments