- This topic has 3 replies, 3 voices, and was last updated 15 years, 6 months ago by imported_Ryan.
-
AuthorPosts
-
May 8, 2009 at 3:48 pm #797DreMember
Hi
I’ve been fiddling with this problem for a few days now and it’s getting kinda of frustrating. The menu i’ve been using is dropping behind the content. I’ve been searching the forum and found solutions regarding the z-index which I’ve been using. This only worked for FireFox. For instance the [b:1sna3fjl]Link [/b:1sna3fjl] drop menu is workin OK for FF but not for IE (6,7 and 8 ). The menu is dropping behind the info block on the page. The site can be found here[/url:1sna3fjl].
I’ve added a [font=courier:1sna3fjl]z-index: 1000[/font:1sna3fjl] to [font=courier:1sna3fjl]#suckerfishnav, #suckerfishnav ul[/font:1sna3fjl] and that worked for FF. So what could be the problem?
I’m using the Subtle theme[/url:1sna3fjl] for WordPress.
CSS theme: http://pothof.eu/lipi/wp-content/themes … layout.css
CODE SuckerFish:
[code:1sna3fjl]
#suckerfishnav {
font-size:13px;
font-family:verdana,sans-serif;
font-weight:bold;
width:100%;
}
#suckerfishnav, #suckerfishnav ul {
float:left;
list-style:none;
line-height:20px;
padding:0;
margin:0;
margin-top:33px;
width:100%;
z-index: 1000
}
#suckerfishnav a {
display:block;
color:#fff;
text-decoration:none;
padding:0px 25px;
}
#suckerfishnav li {
float:left;
padding:0;
list-style-type:none;
}
#suckerfishnav ul {
position:absolute;
left:-999em;
height:auto;
width:131px;
font-weight:normal;
margin:0;
line-height:1;
border:0;
border-top:1px solid #666666;
}
#suckerfishnav li li {
width:129px;
border-bottom:1px solid #666666;
border-left:1px solid #666666;
border-right:1px solid #666666;
font-weight:normal;
font-family:verdana,sans-serif;
margin:0;
}
#suckerfishnav li li a {
display:block;
padding:3px 10px;
width:auto;
font-size:13px;
color:#fff;
}
#suckerfishnav li ul ul {
margin:-20px 0 0 130px
}
#suckerfishnav li li:hover {
background:#99CCFF;
}
#suckerfishnav li ul li:hover a, #suckerfishnav li ul li li:hover a, #suckerfishnav li ul li li li:hover a, #suckerfishnav li ul li li li:hover a {
color:#fff;
}
#suckerfishnav li:hover a, #suckerfishnav li.sfhover a {
color:#fff;
}
#suckerfishnav li:hover li a, #suckerfishnav li li:hover li a, #suckerfishnav li li li:hover li a, #suckerfishnav li li li li:hover li a {
color:#fff;
}
#suckerfishnav li:hover ul ul, #suckerfishnav li:hover ul ul ul, #suckerfishnav li:hover ul ul ul ul, #suckerfishnav li.sfhover ul ul, #suckerfishnav li.sfhover ul ul ul, #suckerfishnav li.sfhover ul ul ul ul {
left:-999em;
}
#suckerfishnav li:hover ul, #suckerfishnav li li:hover ul, #suckerfishnav li li li:hover ul, #suckerfishnav li li li li:hover ul, #suckerfishnav li.sfhover ul, #suckerfishnav li li.sfhover ul, #suckerfishnav li li li.sfhover ul, #suckerfishnav li li li li.sfhover ul {
left:auto;
background:#bbb;
}
#suckerfishnav li:hover, #suckerfishnav li.sfhover {
background:#99CCFF;
}
[/code:1sna3fjl]I’ve added a [font=courier:1sna3fjl]display:block;[/font:1sna3fjl] at [font=courier:1sna3fjl]suckerfishnav li li a[/font:1sna3fjl] and a [font=courier:1sna3fjl]width:auto;[/font:1sna3fjl]
Any help would be appreciated.. ” title=”Smiley” /> Thanks!
May 8, 2009 at 6:53 pm #6072borzoidMemberIt may not be your menu that is at fault. I ran into this today also. What I found was that all of the content items that my menu opened "behind" had the style "position: relative;"
when I removed that line from the styles – the problem was fixed. Hope this helps.
I took a look at your page and the #content div does have a position: relative; style. removing it didn’t break the page in firefox but I couldn’t check IE. Try taking that out and see if it solves your problem.
Connie
May 8, 2009 at 8:39 pm #6073DreMemberIt worked. Wohoo… Thanks a MILLION… I’m sooo happy now ” title=”Smiley” /> ” title=”Smiley” />
May 11, 2009 at 11:49 am #6074imported_RyanMemberGlad to hear you got your problem fixed.
Thanks borzoid ” title=”Smiley” />
-
AuthorPosts
- You must be logged in to reply to this topic.