PDA

View Full Version : Problem with Facebox and IE



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

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

ddadmin
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.

chrbar
03-25-2008, 10:58 PM
Here a link to my Test page
http://www.christophebarre.com/test/page6-1.html

Thanks for your help :)

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

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


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

with just:


<html>

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

RossEwing
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?