Results 1 to 4 of 4

Thread: Problems with Internet Explorer and Lightbox

  1. #1
    Join Date
    Jan 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Problems with Internet Explorer and Lightbox

    Lightbox is working/looking great with my Mac browsers (Firefox, Safari), but I'm experiencing an issue with it in the current version of Internet Explorer for PC: Scrollbars appear around the display window which prevent the entire image from being viewed at once. I tried removing the dimensional attributes from the outer image container, but it didn't help.

    http://www.stewellington.com/Sandbox/wildlife.html

    Any help will be warmly received!

    Stew

  2. #2
    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

    Go back to how it was before you tried to fix it. Use a valid URL DOCTYPE for your page like:

    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    It should be the very first thing in your page's source code, before the opening <html> tag.
    - John
    ________________________

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

  3. #3
    Join Date
    Jan 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks, John. I'm new to the concept of "valid URL DOCTYPE" and to http://www.w3.org/. How do I determine a valid URL DOCTYPE?

    Thanks again,
    Stew

  4. #4
    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

    http://www.w3.org/QA/2002/04/valid-dtd-list.html

    HTML 4.01 strict is very good. You may have better luck with the one I posted in my last message though. The main reason for a valid URL DOCTYPE in this case is to trigger IE's (6+) standards mode in rendering the lightbox. The URL in this case is a link back to the W3C's DTD for that DOCTYPE. This is required to trigger standards mode in IE, though the HTML 5 DOCTYPE, which is very simple and has no URL:

    HTML Code:
    <!DOCTYPE HTML>
    is supposed to trigger standards mode as well. I haven't tested it enough to be sure if it will be sufficient in this case, but you're welcome to give it a try.

    Once you have a DOCTYPE, you can see if your page is valid for that DOCTYPE, but that's a whole other story, often not necessary, though generally a good idea.
    - John
    ________________________

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

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
  •