Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Lightbox Problem

Featured Replies

Hey all,

 

I have a Problem, please visit this page, and then, where you see the box with the artworks, scroll to the right and click on the last image ( Interior Design, 3D image ).

 

So, you see, I'm using a lightbox, but the scrollbar from the overflow is going trough the lightbox when I open an image ! How do I change that ? I want it to be behind.

 

Please help me !

 

Revs.

have you tried adding the z-index value as this will let you stack divs in order

 

#div{
  z-index:10; /* this value is from 0>100 with 100 being the top, 10 should sort it out */
}

  • Author
looks fine in ie 7 and firefox...

 

I'm using Firefox but look at my attachement ( that's what it looks like to me ).

 

have you tried adding the z-index value as this will let you stack divs in order

 

#div{
  z-index:10; /* this value is from 0>100 with 100 being the top, 10 should sort it out */
}

 

I'm a bit of a noob, I don't know where to apply it, I have only 1 div for the box with the scrollbar btw, I applied it to that box, but it didn't change anything, I tried to valued 10 and 100.

post-5227-1226688322_thumb.png

i can only guess you are on a mac.. if that's the case try the z-index idea.. but it must be an operating system related bug and not a browser bug....

 

i know its not much of a consolation but it will look great in 85% of visitors browsers

 

you add z-index to the css.. for example

 

#yourdiv {
float:left;
width:69px;
height:39px;
z-index:10;
}

  • Author
i can only guess you are on a mac.. if that's the case try the z-index idea.. but it must be an operating system related bug and not a browser bug....

 

i know its not much of a consolation but it will look great in 85% of visitors browsers

 

you add z-index to the css.. for example

 

#yourdiv {
float:left;
width:69px;
height:39px;
z-index:10;
}

 

Yea, as you can see on the screenshot, I'm on a mac.

 

Okay I will try that but I have absolutely no idea where to put it.

 

This is my code :

 

<div id="artworks">

<table>

<tr>

<td><a href="imgs/artworks/0001.png"><img src="imgs/artworks/mini/0001.png" alt="0001.png" /></a></td>

<td><a href="imgs/artworks/0005.png"><img src="imgs/artworks/mini/0005.png" alt="0005.png" /></a></td>

<td><a href="imgs/artworks/0003.png"><img src="imgs/artworks/mini/0003.png" alt="0003.png" /></a></td>

<td><a href="imgs/artworks/0007.png"><img src="imgs/artworks/mini/0007.png" alt="0007.png" /></a></td>

<td><a href="imgs/artworks/0002.png"><img src="imgs/artworks/mini/0002.png" alt="0002.png" /></a></td>

<td><a href="imgs/artworks/0004.jpg"><img src="imgs/artworks/mini/0004.png" alt="0004.jpg" /></a></td>

<td><a href="imgs/artworks/0006.png"><img src="imgs/artworks/mini/0006.png" alt="0006.png" /></a></td>

<td><a href="imgs/artworks/0008.png" rel="lightbox"><img src="imgs/artworks/mini/0008.png" alt="0008.png" /></a></td>

</tr>

</table>

</div>

 

#artworks {
width: 900px;
height: 119px;
border: 1px solid gray;
margin: auto;
overflow: auto;
background-color: #2F2F2F; 
}

 

Should I apply the z-index to the <td> ?

#artworks {
width: 900px;
height: 119px;
border: 1px solid gray;
margin: auto;
overflow: auto;
background-color: #2F2F2F;
z-index:10;
}

 

apply it there

  • Author

Okay I did, but it's still not working and I still see the scrollbar trough the lightbox.

 

Oh and wait, I just noticed that this is just with Firefox, on Safari and Opera it works.

 

It also works without the z-index. But should I leave it ?

 

I think there's no other solution, it will not work on some browsers and I'll have to leave it like that.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.