Hello,
I have created a menu and i need the menu to line up with the other items on the page. Currently everything on the page is centerd and my menu extends well over the rest of the items on the page.
Is there a way i can tellt he menu where i want it to start and end? Any suggestions are greatly appriciated. I just need to get this menu to line up with the everything else.
here is my CSS Code
.horizontalcssmenu ul{
margin: 0;
padding: 0;
list-style-type: none;
}
/*Top level list items*/
.horizontalcssmenu ul li{
position: relative;
display: inline;
float: left;
}
/*Top level menu link items style*/
.horizontalcssmenu ul li a{
display: block;
width: 90px; /*Width of top level menu link items*/
padding: 2px 8px;
border: 1px solid #202020;
border-left-width: 0;
text-decoration: none;
background: url(untitled.bmp) center center repeat-x;
color: white;
font: bold 10px Tahoma;
}
/*2nd level menu*/
.horizontalcssmenu ul li ul{
left: 0;
top: 0;
border-top: 1px solid #202020;
position: absolute;
display: block;
visibility: hidden;
z-index: 100;
}
/*2nd level menu list items*/
.horizontalcssmenu ul li ul li{
display: inline;
float: none;
}
/* 2nd level menu links style */
.horizontalcssmenu ul li ul li a{
width: 130px; /*width of sub menu levels*/
font-weight: normal;
padding: 2px 5px;
background: url(untitled1.bmp) center center repeat-x;
border-width: 0 1px 1px 1px;
}
.horizontalcssmenu ul li a:hover{
background: url(untitled1.bmp) center center repeat-x;
}
.horizontalcssmenu ul li ul li a:hover{
background: url(untitled2.bmp) center center repeat-x;
}
.horizontalcssmenu .arrowdiv{
position: absolute;
right: 0;
background: transparent url(menuarrow.gif) no-repeat center left;
}
* html p#iepara{
padding-top: 1em;
}
/*3rd level menu*/
.horizontalcssmenu ul li ul li ul{
left: 0;
top: 0;
border-top: 0px solid #202020;
position: absolute;
left: 80px; /*this is the offset for the sub sub-menu to allow the sub-menu to be seen*/
display: block;
visibility: hidden;
z-index: inherit;
}
/*3rd menu list items*/
.horizontalcssmenu ul li ul li ul li{
display: inherit;
float: right;
}
/*3rd menu links style */
.horizontalcssmenu ul li ul li ul li a{
width:120px; /*width of sub menu levels*/
display:block;
font-weight: normal;
padding: 2px 2px;
background: url(untitled.bmp) center center repeat-x;
border-width: 0 1px 1px 1px;
}