-
Suckertree menu, drop downs behind content, 3 column float
I have created a few suckertree menus on sites and they are working fine, (thanks to info I have found on this forum) but this is the first time I have done so with three columns below the menu.
I corrected the z-index for the menu and the floating columns below (or atleast think I did.) When I add the left column on to the page the drop down menu items appear behind the content below when rolled-over.
Is there additional code I need to consider with the three floating columns below the menu?
Thank you to anyone that can offer insight.
Here is the link to the page: http://www.liseyinc.com/Test-ibgd.html
Here is the CSS for the suckertree and the columns.
body {
margin-top: 0px;
margin-left: 0px;
background-image: url(/images/ibg-bkgd.jpg);
background-color: #01446f;
background-repeat: repeat-x;
}
#container
{
width: 910px;
margin: 10px auto;
background-color: ;
color: #333;
line-height: 130%;
position: relative;
padding: 10px;
background-color: #FFFFFF;
}
#top
{
background-color: #033353;
background-image: url(/images/ibg-logo2.jpg);
background-repeat: no-repeat;
height: 90px;
background-position: left top;
}
#top h1
{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 18px;
font-weight: normal;
text-align: right;
color: #FFFFFF;
}
#leftbar #content #rightbar {
z-index: 0;
}
#leftbar
{
float: left;
width: 190px;
margin: 0;
padding: 0;
position: relative;
clear: left;
top: 10px;
}
#content
{
margin-left: 0px;
border-left: 1px #000033;
margin-right: 0px;
border-right: 1px #000033;
font-family: Arial, Helvetica, sans-serif;
font-size: 80%;
font-style: normal;
color: #333333;
float: left;
width: 470px;
word-spacing: normal;
position: relative;
padding-top: 15px;
padding-right: 15px;
padding-bottom: 10px;
padding-left: 40px;
}
#rightbar
{
float: right;
width: 170px;
margin-top: 0px;
margin-left: 0px;
padding: 1em;
font-family: Arial,Helvetica,sans-serif;
font-size: 12px;
line-height: 18px;
top: 6px;
position: relative;
}
#footer
{
clear: both;
margin: 0;
padding: 0.5em;
color: #ffffff;
background-color: #666666;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 7pt;
font-style: normal;
text-align: left;
padding-top: 6px;
}
#navcontainertop {
background-color: #888888;
margin-left: 0px;
width: 100%;
margin-bottom: 10px;
display: block;
height: 28px;
margin-top: 0px;
background-image: url(/images/topnav.jpg);
background-repeat: repeat-x;
border-bottom-width: 4px;
border-bottom-style: solid;
border-bottom-color: #268029;
}
/*Credits: Dynamic Drive CSS Library */
/*URL: http://www.dynamicdrive.com/style/ */
.suckertreemenu ul{
margin: 0;
padding: 1px;
list-style-type: none;
width: 100%;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9pt;
color: #ffffff;
}
/*Top level list items*/
.suckertreemenu ul li{
position: relative;
display: inline;
float: left;
padding-right: 12px;
border-right-width: 1px;
border-right-style: solid;
border-right-color: #FFFFFF;
}
/*Top level menu link items style*/
.suckertreemenu ul li a{
display: block;
border: #ffffff;
border-left-width: 0px;
text-decoration: none;
color: #ffffff;
padding-top: 2px;
padding-right: 20px;
padding-bottom: 3px;
padding-left: 3px;
}
/*1st sub level menu*/
.suckertreemenu ul li ul{
left: 0;
position: absolute;
top: 1em; /* no need to change, as true value set by script */
display: block;
visibility: hidden;
}
/*Sub level menu list items (undo style from Top level List Items)*/
.suckertreemenu ul li ul li{
display: list-item;
float: none;
}
/*All subsequent sub menu levels offset after 1st level sub menu */
.suckertreemenu ul li ul li ul{
left: 159px; /* no need to change, as true value set by script */
top: 0;
}
/* Sub level menu links style */
.suckertreemenu ul li ul li a{
display: block;
width: 160px; /*width of sub menu levels*/
color: #333333;
background-color: #CCCCCC;
text-decoration: none;
padding: 1px 5px;
border: 1px solid #eeeeee;
}
.suckertreemenu ul li a:hover{
background-color: #eeeeee;
color: #333333;
}
/*Background image for top level menu list links */
.suckertreemenu .mainfoldericon{
}
/*Background image for subsequent level menu list links */
.suckertreemenu .subfoldericon{
}
* html p#iepara{ /*For a paragraph (if any) that immediately follows suckertree menu, add 1em top spacing between the two in IE*/
padding-top: 1em;
}
#navcontainertop .suckertreemenu {
z-index: 1000;
}
/* Holly Hack for IE \*/
* html .suckertreemenu ul li { float: left; height: 1%; }
* html .suckertreemenu ul li a { height: 1%; }
/* End */
/*left-side navigation*/
#navcontainerside {
width: 190px;
padding: 0px;
top: 0px;
}
.navsidetitle{
display: block;
padding: 6px;
width: 180px;
background-color: #033353;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
color: #FFFFFF;
font-size: 12px;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #eee;
background-image: url(/images/title-bar-green.jpg);
background-repeat: repeat-y;
background-position: left;
padding-left: 16px;
}
#navcontainerside ul
{
margin-left: 0px;
padding-left: 0px;
list-style-type: none;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
}
#navcontainerside a
{
display: block;
padding: 6px;
width: 190px;
background-color: #eee;
border-bottom: 1px solid #fff;
}
#navcontainerside a:link, #navlist a:visited
{
color: #033353;
text-decoration: none;
}
#navcontainerside a:hover
{
background-color: #CCE1B3;
color: #fff;
}
-
-
I fixed it on my own.
Even though the 0 and 1000 z-index settings worked fine for me before, they were not with the three column version.
I changed the three columns to -1 based on another post I just read and it now works.
Hope this atleast helps if you are looking for a solution to this problem.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks