BAD311 Posted June 28, 2008 Share Posted June 28, 2008 Hello all, I'm working on a website for a friend of mine, and I'm having a difficult problem. When people go to the photo gallery, select a gallery, they are taken to: http://www.glofishforum.com/sept212007.php *Excuse the url, it's a testing site I use for new projects When people click on an image the photo appears using lightbox 2.0, but the menu appears above the photo, kind of like a layer, why is it doing this? Here is a screenshot: I know my code isn't the best, and I know I have some coding issues with FireFox, but 98% of the website visitors use IE, so my focus is IE. Can anyone give any tips/hints/clues? I apologize in advance if this should be posted in the JS forum section. Link to comment https://forums.phpfreaks.com/topic/112382-solved-menu-layer-appears-over-lightbox-photo-need-a-fix/ Share on other sites More sharing options...
thatsgreat2345 Posted June 28, 2008 Share Posted June 28, 2008 check the z-index in the css for either the menu or the box Link to comment https://forums.phpfreaks.com/topic/112382-solved-menu-layer-appears-over-lightbox-photo-need-a-fix/#findComment-576985 Share on other sites More sharing options...
DeanWhitehouse Posted June 29, 2008 Share Posted June 29, 2008 This should not be in the PHP section. Link to comment https://forums.phpfreaks.com/topic/112382-solved-menu-layer-appears-over-lightbox-photo-need-a-fix/#findComment-576989 Share on other sites More sharing options...
BAD311 Posted June 29, 2008 Author Share Posted June 29, 2008 Interesting lightbox nor the drop down menu css have z-index properties. Perhaps I can just push z-index in the lightbox css??? If that is the case, I wonder where I could insert it? #lightbox{ position: absolute; left: 0; width: 100%; z-index: 100; text-align: center; line-height: 0;} #lightbox img{ width: auto; height: auto;} #lightbox a img{ border: none; } #outerImageContainer{ position: relative; background-color: #fff; width: 250px; height: 250px; margin: 0 auto; } #imageContainer{ padding: 10px; } #loading{ position: absolute; top: 40%; left: 0%; height: 25%; width: 100%; text-align: center; line-height: 0; } #hoverNav{ position: absolute; top: 0; left: 0; height: 100%; width: 100%; z-index: 10; } #imageContainer>#hoverNav{ left: 0;} #hoverNav a{ outline: none;} #prevLink, #nextLink{ width: 49%; height: 100%; background-image: url(data:image/gif;base64,AAAA); /* Trick IE into showing hover */ display: block; } #prevLink { left: 0; float: left;} #nextLink { right: 0; float: right;} #prevLink:hover, #prevLink:visited:hover { background: url(../images/prevlabel.gif) left 15% no-repeat; } #nextLink:hover, #nextLink:visited:hover { background: url(../images/nextlabel.gif) right 15% no-repeat; } #imageDataContainer{ font: 10px Verdana, Helvetica, sans-serif; background-color: #fff; margin: 0 auto; line-height: 1.4em; overflow: auto; width: 100% ; } #imageData{ padding:0 10px; color: #666; } #imageData #imageDetails{ width: 70%; float: left; text-align: left; } #imageData #caption{ font-weight: bold; } #imageData #numberDisplay{ display: block; clear: left; padding-bottom: 1.0em; } #imageData #bottomNavClose{ width: 66px; float: right; padding-bottom: 0.7em; outline: none;} #overlay{ position: absolute; top: 0; left: 0; z-index: 90; width: 100%; height: 500px; background-color: #000; } Link to comment https://forums.phpfreaks.com/topic/112382-solved-menu-layer-appears-over-lightbox-photo-need-a-fix/#findComment-576990 Share on other sites More sharing options...
BAD311 Posted June 29, 2008 Author Share Posted June 29, 2008 SOLVED. I'm an idiot!!! THANK YOU thatsgreat2345 :-) Link to comment https://forums.phpfreaks.com/topic/112382-solved-menu-layer-appears-over-lightbox-photo-need-a-fix/#findComment-576995 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.