PDA

View Full Version : facebox showing left in IE



RossEwing
08-04-2009, 12:06 AM
1) Script Title: facebox

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

3) Describe problem:

The facebox script looks great in Firefox, but when viewed in IE it shows to the left of the screen not the centre. It also loses its style (font, font-color etc) Any ideas to what may be causing this??

http://www.findstudentdigs.com/beta/index.php?city=newcastle

Click on advertise on the navigation

Thanks in advance

piveloco2004
08-26-2009, 04:20 PM
The author of the facebox script states a doctype declaration (the very first three lines of the code) that is supposed to go at the very top of your page, not together with the rest of the code.

ddadmin
08-27-2009, 03:06 AM
The doctype must be the very first thing in your page's source in order for it to take effect in IE. So something like:


<!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">

<!--
###########################################################
### ##
### Website Designed & Developed ##
### By ##
### Ross Ewing ##
### ##
### Find Student Digs Limited ##
### ##
###########################################################
-->