PDA

View Full Version : Lightbox 2.03a - how to center image



azdevil
08-06-2010, 08:26 PM
1) Script Title: Lightbox2

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

3) Describe problem: everything works great, however the slideshow/image viewer pops up on the left hand side of the page. Was wondering if we can tweak it to open in the middle of the page? Thanks.

djr33
08-06-2010, 11:57 PM
1. Your link was broken, so here's the link to the script:
http://www.dynamicdrive.com/dynamicindex4/lightbox2/index.htm

2. We need a link to your page to help because the demo page doesn't have the same error.

azdevil
08-07-2010, 02:07 AM
thanks dude.

to avoid getting an indexed link:

az home construction . com / gallery

(obviously no spaces)

the thumbed images are towards the bottom of the page.

Thanks in advance/ JP

jscheuer1
08-07-2010, 03:45 AM
The default is centered. Either someone edited the lightbox.css file used on the page linked to in your post, or something happened to it somehow. Anyways, the copy of lightbox.css used by that page has (at the beginning):


#lightbox{
position: absolute;
left: 0;
width: 25%;
z-index: 100;
text-align: center;
line-height: 0;
}

It should be:


#lightbox{
position: absolute;
left: 0;
width: 100%;
z-index: 100;
text-align: center;
line-height: 0;
}

That will fix it.

azdevil
08-07-2010, 06:23 AM
DynamicDrive.com rocks!