Monday, February 09, 2009

Lightbox 2 Problem - Progress Indicator on left instead of centred

I've been scratching my head over this for a while but have finally found an answer.

If you are using Lightbox 2 (see you might see the progress indicator or 'loading icon' off to the left instead of centred. This is confusing and looks a bit sloppy.

It turns out that if you have used
for images in your main CSS this will cause a problem for the Lightbox. Simply edit the jquery.lightbox-0.5.css file adding
to the
#jquery-lightbox a img { }
statement and that should fix it for you.

Described in less detail on the