View Full Version : lightbox overlay not scrolling down in IE7

01-26-2009, 10:31 AM
I am using Lightbox v2.03 http://www.dynamicdrive.com/dynamicindex4/lightbox2/index.htm
it is working very well in FF, but in IE7 the overlay is not scrolling down : the overlay is only screenheight, when i scroll down it disappaers.
The page is this : http://www.captain-africa.com/nl_foto_Burkina_Mali.htm
Can anyone help me out ?
Thanks a lot

01-26-2009, 01:58 PM
No problem here in IE 7.

01-27-2009, 04:17 PM
the problem is here :
the width and height of the overlay are calcualted to equal the document size. In IE there was a glitch with this.
As I use the lightbox just on a few pages with all more or less the same size, I made the height into a constant value.
It is a crude solution to the problem

01-27-2009, 04:34 PM
You might not have that problem with a valid document. Try replacing:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

01-31-2009, 02:04 PM
Thanks jscheuer1
but this doesn't change it. Also it interferes with my menu (HVmenu, from here) in FF3.
tahnks anyway

02-01-2009, 02:24 PM
That's funny because with a valid DOCTYPE declaration on the DD demo page for this script, there isn't that problem either. Try validating your markup.

02-03-2009, 10:46 PM
still i use the doctype provided with the HV menu, otherwise the HV menu does not work so well in FF, though all is OK in IE

02-04-2009, 12:57 AM
Well yes, when other older scripts are involved things can get tricky. I do try to remain sensitive both to that, and to the fact that not everyone can and/or will take the time to upgrade to valid code.

So I'm not making any demands. I just wanted to point out for you and possibly for others that many modern scripts like Lightbox (which is far from perfect) work best in a valid coding environment.

Once you elect not to maintain such an environment, the number of required fixes, and their specificity tends to grow, making maintenance more time consuming.