Log in

View Full Version : z-index problem



mlegg
08-12-2014, 06:11 PM
on this page (http://ryesunrise.com/photo.html) when you click on a thumbnail, the lightbox opens the image behind the menu if you are near the top of the page. I have the z-index set as 10. What am I doing wrong?
thanks

http://ryesunrise.com/index_files/vlb_engine/visuallightbox.js is where the visuallightbox Javascript file is located

Deadweight
08-12-2014, 08:34 PM
I think this is what you need to do:
add this anywhere:


#vlb1overlay {z-index:100 !important;}


Then add this
z-index: 1;
to
ul#css3menu1,ul#css3menu1 ul
in RyeSunrise_menu_files style.css

mlegg
08-15-2014, 02:33 PM
that didn't work :( and I made another new site (http://ryebeachhome.com/photo.html) and the photo's pop up under the navigation menu bar again.

I looked in the http://ryebeachhome.com/RyeBeachHome_menu_files/css3menu1/style.css (http://ryebeachhome.com/RyeBeachHome_menu_files/css3menu1/style.css)

here is the lighbox css page (http://ryebeachhome.com/index_files/vlb_files1/vlightbox1.css) and this too (http://ryebeachhome.com/index_files/vlb_files1/visuallightbox.css)

Deadweight
08-15-2014, 05:48 PM
Where is your css for your menu bar?

mlegg
08-15-2014, 07:56 PM
Where is your css for your menu bar?
that is the link http://ryebeachhome.com/RyeBeachHome_menu_files/css3menu1/style.css

Deadweight
08-15-2014, 08:28 PM
This might sound awkward but can you zip all the contents and message me the link to download it. Would make this much more easy to figure out

Deadweight
08-15-2014, 09:00 PM
Change in style.css


ul#css3menu1{
font-size:0;width:100%;z-index:999;position:relative;display:inline-block;zoom:1;padding:0 0%;margin:0 0%;
*display:inline;*padding-right:0.95%;}

to:


ul#css3menu1{
font-size:0;width:100%;z-index:10;position:relative;display:inline-block;zoom:1;padding:0 0%;margin:0 0%;
*display:inline;*padding-right:0.95%;}


in styles.css under header make that 11:


header {
background: linear-gradient(to left,rgba(54,194,182,0.96) 0,rgba(62,188,207,0.96) 100%);
border-bottom: 1px solid rgba(0,0,0,.1);
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
display: block;
position: fixed;
width: 100%;
z-index:1000;
}

to


header {
background: linear-gradient(to left,rgba(54,194,182,0.96) 0,rgba(62,188,207,0.96) 100%);
border-bottom: 1px solid rgba(0,0,0,.1);
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
display: block;
position: fixed;
width: 100%;
z-index:11;
}

mlegg
08-15-2014, 09:32 PM
WOW this has been driving me insane :rolleyes:
thank you so much!