Click to See Complete Forum and Search --> : Page wont centre in IE


rodd1000
07-21-2008, 05:07 AM
Hi, ive created a contact form on this site (http://www.newvauxhall-insignia.co.uk/form.php) but for some reason it doesnt centre in internet explorer but is ok in firefox.

Could anyone shed some light as to why this might be happening or offer a soltution that may rectify it.

Im guessing it may have to do with it being a php page... but i may be wrong.

Thanks in advance.

Centauri
07-21-2008, 06:24 AM
You won't get IE to conform to any standards whilst in quirks mode. You need a valid doctype at the top of the page - this should have been the first thing on the page before doing anything...

Fang
07-21-2008, 06:26 AM
http://www.w3.org/QA/2002/04/valid-dtd-list.html

Mr. E. Cryptic
07-21-2008, 06:44 AM
<head> <html> and <body> tags might also help, unless you're embedding into an existing page, in which case, your CSS and Javascript should probably be in the existing head.

Fang
07-21-2008, 07:06 AM
<head> <html> and <body> tags might also help, ...They all may be omitted in a valid document.

Mr. E. Cryptic
07-21-2008, 07:39 AM
Originally Posted by Mr. E. Cryptic
<head> <html> and <body> tags might also help, ...

They all may be omitted in a valid document.

Huh! You learn something new every day :eek:

Fang
07-21-2008, 08:07 AM
Read the W3C recommendations for HEAD (http://www.w3.org/TR/REC-html40/struct/global.html#edef-HEAD)<!ELEMENT HEAD O O (%head.content;) +(%head.misc;) -- document head -->The 2 Os indicate: Start tag: optional, End tag: optional
See the source code of this validating site (http://annevankesteren.nl/)
For clarity I would recommend you do use these elements.

Centauri
07-21-2008, 09:25 AM
See the source code of this validating site (http://annevankesteren.nl/)

It may validate, but due to the incomplete doctype it doesn't work very well in IE6 ......

Fang
07-21-2008, 09:30 AM
He works for Opera, I don't think he's too worried about IE6.