PDA

View Full Version : Lightbox Image Viewer



ausdrew
01-03-2007, 04:40 AM
1) Script Title: Lightbox Image Viewer V2

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/lightbox2/index.htm

3) Describe problem:

Hey all, I just need some help with the coding in this.
I added this to my site and its works fine but there are just some things i want to change and have no idea how to.

I would like the image box to be a little closer to the top.

And the other thing... is it possible to make the Black background reach right to the end and to the bottom because at the moment its just stopping at the bottom as some of the images are a little bigger.....


Thanks in advanced.
Kind Regards

jscheuer1
01-04-2007, 07:10 AM
In lightbox.css - using this:


#outerImageContainer{
position: relative;
background-color: #fff;
width: 250px;
height: 250px;
margin: -50px auto 0 auto;
}

instead of the default:


#outerImageContainer{
position: relative;
background-color: #fff;
width: 250px;
height: 250px;
margin: 0 auto;
}

Will raise the image container 50px on the page. As to your second question, the only way I can think of is to make sure that your page is taller than the tallest image.