Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I've been pulling my hair out but can't figure out why my page looks like a huge mess in IE9, but Firefox, Chrome, Opera, Safari works great.

My website is here: http://173.244.195.179/test-o.html

Could anyone tell me what I'm doing that isn't compatible with IE9?

share|improve this question
1  
@Dan Grossman: Dont see why this question should not be here! –  Jawad Jul 30 '11 at 4:06
    
I have seen that question a million times. –  Knu Jul 30 '11 at 4:10
1  
Exactly. And it has been answered a million times. –  Jawad Jul 30 '11 at 4:13
add comment

migrated from stackoverflow.com Jul 31 '11 at 1:17

This question came from our site for professional and enthusiast programmers.

2 Answers

up vote 2 down vote accepted

Looking at your source code, you have a couple of serious issues:

<script language=javascript type='text/javascript'> 
...
</script>
<!DOCTYPE html>
<html>
<head>

You have a script tag at the very top of your page. They should go inside the head tags. Which leads me to the next issue:

<!DOCTYPE html>
<html>
<head>
...
</head>
<body><head>
...
</head>
<body>

You have two <head> tags, and two opening <body> tags. This should be replaced with:

<!DOCTYPE html>
<html>
<head>
...
</head>
<body>
...
</body>
</html>
share|improve this answer
    
Thanks, that worked! Oddily enough, putting the script tags inside head made it only work in IE. But putting them above doc type made it work for both browsers –  Kevin Duke Jul 30 '11 at 5:47
add comment

You need a Doctype. Just put

<!DOCTYPE html>

At the top in your HTML code.

share|improve this answer
    
wrong doctype type this <!DOCTYPE html> –  sandeep Jul 30 '11 at 4:08
    
Also your link and meta tags are in the body element. Place them in them in the head element. –  Jawad Jul 30 '11 at 4:09
    
@sandeep: Thanks! –  Jawad Jul 30 '11 at 4:10
    
lol. No problems with downvotes as long as people who downvote should post comments. Or are they so full of themseleves? –  Jawad Jul 30 '11 at 4:12
    
"You last voted on this answer 12 hours ago Your vote is now locked in unless this answer is edited" –  Knu Jul 30 '11 at 16:50
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.