View Full Version : Lightbox 2.03 and IE not playing nice...

07-12-2007, 02:18 AM
1) Script Title: Lightbox JS 2.0

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

3) Describe problem: For some reason, in IE 6 and 7, the black field around the image does not extend all the way to the right of the page, it leaves a stripe. Works okay in FF.

Demo page works fine, but not on my test page -

Known issue?


07-12-2007, 08:50 PM

07-12-2007, 10:19 PM
I have seen this happen before, but the causes can be various. In your case it looks like simply a matter of neglecting to use a DOCTYPE. With this script, one should have at least a:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">

DOCTYPE. This one is recommended:

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

That wil do it or IE 7. For 6, you may need to add to your stylesheet:

* html body {

07-13-2007, 12:54 AM
Ahhhh...yes - that did the trick!

Many thanks :)