Results 1 to 6 of 6

Thread: Problem with Facebox and IE

  1. #1
    Join Date
    Aug 2006
    Posts
    44
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question Problem with Facebox and IE

    1) Script Title:
    Facebox image and content viewer (v 1.1)

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

    3) Describe problem:

    Because I use a four colons CSS Layouts:
    http://www.cssplay.co.uk/layouts/body5.html
    I have to add a code line for IE at the top of my page, before the DOCTYPE:
    <!-- IE into quirks mode -->
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">


    Facebox runs correctly on FireFox, Opera, Safari... but there is a problem with IE (6 or 7), the Facebox viewer doesn't appear at the center of the window, but on the left border of the window (like if the left border value was 0)!

    Could you help me to resolve this problem?
    Thanks a lot,
    Chris

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Please post a link to the page on your site that contains the problematic script so we can check it out.

  3. #3
    Join Date
    Aug 2006
    Posts
    44
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Here a link to my Test page
    http://www.christophebarre.com/test/page6-1.html

    Thanks for your help

  4. #4
    Join Date
    Aug 2006
    Posts
    44
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    None idea to resolve this problem on IE?
    All help is welcome

  5. #5
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Try replacing:

    Code:
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    with just:

    Code:
    <html>
    If I recall correctly, your original declaration throws IE into quirks mode.

  6. #6
    Join Date
    Feb 2009
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I'm having the same problem, where in FF and Safari the facebox is loaded center. But when loaded in IE 7 it loads to the left of the window. Any ideas?

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
  •