views:

300

answers:

2

Hey all,

I know you are smarter than I and, therefore, should be able to help. For some reason my site freshwaterhobbyist.com looks terrible in IE8. All of my Div containers are misaligned and everything is pretty much helter skelter. Putting it in compat mode DOES fix the issue, but I would like IE8 users to see my site as intended when they first reach it...anything would help.--Jesse

+2  A: 

Put this:

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

In the "head" of your document right beneath the title. It will force the site to always render in IE7 for IE8 users, even the first time they visit.

Jon
You guys are freaking awesome. So fast, so right, totally great.
Although this works, it glosses over the problem. Because the site doesn't validate, future browser versions may screw this up.
Chris Lively
+2  A: 

The first thing I see is that you are using an XHTML Transitional doctype, but your page doesn't conform to that spec. Little things like <br> tags instead of using <br /> tags. Also you seem to have a fair number of tags that don't have starting points and others that don't have ending points. Finally, you have tags that are illegally embedded within other tags.

You might want to start with using a doctype that matches your html code. For example, html 4.01 transitional. It tends to be a little more forgiving to malformed html.

See more information at: A List Apart.

Chris Lively
Thanks so much for your fast response, it was extremely helpful. I am curious, when I attempt to validate my site I get an overwhelming number of errors. You seem to now quite a bit more about the whole scene so I was curious if you could tell me how not being validated is going to effect my sites performance over all? Should I tke the time to get everything square so it validates? I would change the doc type as you suggested, but, other than just pasting it over the doc type info I already have on every page, I do not know how that is done....I know..I am new and teaching myself so mabe dumb.
Because the site doesn't validate, browsers have to fall back to a quirks mode to start rendering. That, in itself, is a minor hiccup. The bigger issue is, even with a reset style sheet, there is the potential of weird problems coming up in different browsers due to the fallback to quirks mode. You should fix this. Also, if you like the answer, up vote.
Chris Lively