Capm Petersen
Capm Petersen

Reputation: 21

Issue with centering page in IE

I've been able to get the page to center in all browsers except IE which places the header and content divs to the left, while it centers the footer.

I'm new to CSS and just can't figure out why IE is different. Any help would be appreciated!

http://www.ultralaboratories.com/index3.php

Upvotes: 0

Views: 51

Answers (2)

Codrin Eugeniu
Codrin Eugeniu

Reputation: 1383

IE needs the DOCTYPE specified, if it doesn't find it it renders the page in "quirks mode". In your html, the DOCTYPE is inside the <head>. Move it at the very top of the html, outside <head> and it should all be ok.

Upvotes: 1

PraveenVenu
PraveenVenu

Reputation: 8337

Why do you have <title>Ultra Labs</title> at the beginning of the file. Please remove it and try

Upvotes: 0

Related Questions