Jump to content

Recommended Posts

Hi there guys, i made an popup window with some content on it, all stuff being shaded but menu bar tabs... (The best thing to understand me is to take a look at images below)

 

Image one (without popup)

helppopup2.jpg

 

Image two (with popup)

helppopup.jpg

 

And the css of menu bar is:

 

.sf-menu, .sf-menu * {
margin:			0;
padding:		0;
list-style:		none;
}
.sf-menu {
line-height:	1.0;
}
.sf-menu ul {
position:absolute;
top:-999em;
width:10em;
}
.sf-menu ul li {
width:100%;
}
.sf-menu li:hover {
visibility:inherit;
}
.sf-menu li {
float:left;
position:absolute;
}
.sf-menu a {
display:block;
position:relative;
}
.sf-menu li:hover ul,
.sf-menu li.sfHover ul {
left:0;
top:2.5em; 
z-index:99;
}
ul.sf-menu li:hover li ul,
ul.sf-menu li.sfHover li ul {
top:-999em;
}
ul.sf-menu li li:hover ul,
ul.sf-menu li li.sfHover ul {
left:10em;
top:0;
}
ul.sf-menu li li:hover li ul,
ul.sf-menu li li.sfHover li ul {
top:-999em;
}
ul.sf-menu li li li:hover ul,
ul.sf-menu li li li.sfHover ul {
left:10em; 
top:0;
}

#top_btns{ background:transparent url(../multimedias/images/header/top_btn_bg.png);
width:950px; height:37px; padding:8px 0px 0px 0px; float:left; margin:15px 0px 0px 0px; color:#FFF;}

.sf-menu li ul {
float:			center;
margin-bottom:	1em;
}
.sf-menu a {
padding: 		.75em 1em;
}
.sf-menu li ul a {
border-left:	1px solid #fff;
border-top:		1px solid #fff;
padding: 		.75em 1em;
text-decoration:none;
}
.sf-menu li ul a, .sf-menu ul li a:visited  { /* visited pseudo selector so IE6 applies text colour*/
color:			#13a;
}
.sf-menu li ul li {
background:		#000000;
opacity:0.9;
filter: alpha(opacity = 90);
}
.sf-menu li li {
background:		#000000;
}
.sf-menu li li li {
background:		#000000;
}

/*** shadows for all but IE6 ***/
.sf-shadow ul {
background:	url(../multimedias/images/menu/shadow.png) no-repeat bottom right;
behavior: expression((this.runtimeStyle.behavior="none")&&(this.pngSet?this.pngSet=true:(this.nodeName == "IMG" && this.src.toLowerCase().indexOf('.png')>-1?(this.runtimeStyle.backgroundImage = "none",
this.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + this.src + "', sizingMethod='image')",
this.src = "../multimedias/images/pngFix/blank.gif"):(this.origBg = this.origBg? this.origBg :this.currentStyle.backgroundImage.toString().replace('url("','').replace('")',''),
this.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + this.origBg + "', sizingMethod='crop')",
this.runtimeStyle.backgroundImage = "none")),this.pngSet=true)
);
padding: 0 8px 9px 0;
-moz-border-radius-bottomleft: 17px;
-moz-border-radius-topright: 17px;
-webkit-border-top-right-radius: 17px;
-webkit-border-bottom-left-radius: 17px;
}
.sf-sub-indicator{ display:none;}
.sf-shadow ul.sf-shadow-off {
background: transparent;
}

#top_btns ul.sf-menu{ list-style-type:none; float:left; margin:0px; text-transform: uppercase; z-index:100}
#top_btns ul li{ list-style-type:none; float:left;}
#top_btns ul li.top{ padding-right:16px;}
#top_btns ul li a{ color:#FFF; text-decoration:none;}
#top_btns ul li a:hover{ color:#ffa200; text-decoration:none;}

 

I'm sorry if this is a wrong forum.

 

P.s. thanks in advance!

Link to comment
https://forums.phpfreaks.com/topic/239108-menu-bar-comes-in-front-of-popup-window/
Share on other sites

on line 128 of your style sheet add the property I commented on:

 

#top_btns ul.sf-menu {
    float: left;
    list-style-type: none;
    margin: 0;   
    text-transform: uppercase;
    z-index: 100;
    position: relative; /* <---------  I added this */
}

 

The z-index property is meant for objects with a position other than static, so if you just give something a z-index it wont work, because they are static objects by default.

 

if this solved it for you please mark it solved ;)

 

cssfreakie

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.