Results 1 to 4 of 4

Thread: Lightbox 2.03 and IE not playing nice...

  1. #1
    Join Date
    Jan 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Lightbox 2.03 and IE not playing nice...

    1) Script Title: Lightbox JS 2.0

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...box2/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?

    Thanks
    Last edited by weejy; 07-17-2007 at 07:18 PM.

  2. #2
    Join Date
    Jan 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    bump...

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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:

    Code:
    <!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:

    Code:
    <!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:

    Code:
    * html body {
    margin:0;
    }
    Last edited by jscheuer1; 07-12-2007 at 10:34 PM. Reason: Add Info
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  4. #4
    Join Date
    Jan 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ahhhh...yes - that did the trick!

    Many thanks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •