css Horizontal Java Menu
Link to origional web site.
HTML for css Horzontal Java Menu
<div class="horizontalcssmenu">
<ul id="cssmenu1">
<li style="border-left: 1px solid #202020;"><a href="index.htm">Home</a></li>
<li><a href="http://www.javascriptkit.com/cutpastejava.shtml" >Free JS</a></li>
<li><a href="http://www.javascriptkit.com/">JS Tutorials</a></li>
<li><a href="#">References</a>
<ul>
<li><a href="http://www.javascriptkit.com/jsref/">JS Reference</a></li>
<li><a href="http://www.javascriptkit.com/domref/">DOM Reference</a></li>
<li><a href="http://www.javascriptkit.com/dhtmltutors/cssreference.shtml">CSS Reference</a></li>
</ul>
</li>
<li><a href="http://www.javascriptkit.com/howto/">web Tutorials</a></li>
<li><a href="boat.htm">Sea Doo</a>
<ul>
<li><a target="_blank" href="images/lg_180_01.jpg">180 Challenger</a></li>
<li><a target="_blank" href="images/lg_180_02.jpg">180 Challenger</a></li>
<li><a target="_blank" href="images/lg_230_01.jpg">230 Challenger</a></li>
<li><a target="_blank" href="images/lg_230_02.jpg">230 Challenger</a></li>
<li><a target="_blank" href="images/lg_310_01.jpg">Islandia SE</a></li>
<li><a target="_blank" href="images/lg_310_02.jpg">Islandia SE</a></li>
</ul>
</li>
</ul>
<br style="clear: left;" />
</div>
CSS for Horizontal Java Menu
.horizontalcssmenu ul{
margin: 0;
padding: 0;
list-style-type: none;
}
/*Top level list items*/
.horizontalcssmenu ul li{
margin: 0;
position: relative;
display: inline;
float: left;
}
/*Top level menu link items style*/
.horizontalcssmenu ul li a{
display: block;
width: 110px; /*Width of top level menu link items*/
padding: 2px 8px;
border: 1px solid #202020;
border-left-width: 0;
text-decoration: none;
background: url(images/menubg.gif) center center repeat-x;
color: black;
font: bold 13px Tahoma;
}
/*Sub level menu*/
.horizontalcssmenu ul li ul{
left: 0;
top: 0;
border-top: 1px solid #202020;
position: absolute;
display: block;
visibility: hidden;
z-index: 100;
}
/*Sub level menu list items*/
.horizontalcssmenu ul li ul li{
display: inline;
float: none;
}
/* Sub level menu links style */
.horizontalcssmenu ul li ul li a{
width: 160px; /*width of sub menu levels*/
font-weight: normal;
padding: 2px 5px;
background: #e3f1bd;
border-width: 0 1px 1px 1px;
}
.horizontalcssmenu ul li a:hover{
color:#000;
background: url(images/menubgover.gif) center center repeat-x;
}
.horizontalcssmenu ul li ul li a:hover{
color:#000;
background: #cde686;
}
.horizontalcssmenu .arrowdiv{
position: absolute;
right: 0;
background: transparent url(images/menuarrow.gif) no-repeat center left;
}
* html p#iepara{ /*For a paragraph (if any) that immediately follows menu, add 1em top spacing between the two in IE*/
padding-top: 1em;
}
/* Holly Hack for IE \*/
* html .horizontalcssmenu ul li { float: left; height: 1%; }
* html .horizontalcssmenu ul li a { height: 1%; }
/* End */
Java Script for Menu
Click Here and save to the directory of your new design.
Images for css Horizontal Java Menu
menuarrow.gif
menubg.gif
menubgover.gif