View Full Version : Problem with Facebox and IE

03-24-2008, 10:26 PM
1) Script Title:
Facebox image and content viewer (v 1.1)

2) Script URL (on DD):

3) Describe problem:

Because I use a four colons CSS Layouts:
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"
<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,

03-24-2008, 11:44 PM
Please post a link to the page on your site that contains the problematic script so we can check it out.

03-25-2008, 10:58 PM
Here a link to my Test page

Thanks for your help :)

03-27-2008, 08:53 PM
None idea to resolve this problem on IE?
All help is welcome :)

03-27-2008, 09:10 PM
Try replacing:

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

with just:


If I recall correctly, your original declaration throws IE into quirks mode.

07-26-2009, 04:12 PM
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?