views:

66

answers:

2

This is odd, and I hope I explain it correctly.

When I debug locally with VS2008, IE8 looks like FF and Chrome (minus the obvious). It works well, and I'm happy.

When I use IE8 with our IIS6 box (Win2003) or Cassini, buttons aren't aligned, javascript errors occur, and some other CSS anomolies occur: Table cells missing colored borders, div elements having different dimensions by 2-3pixels.

If anyone has come across this, please let me know - It's completely baffling me

+1  A: 

Could it be an old CSS file that is cached on the client?

Shiraz Bhaiji
I was really hoping that was it, but I cleared the cache repeatedly - same issue.
Dan
Are you using IE8 from 2 different machines, if yes check if they are the same patch level, possibly other config differences
Shiraz Bhaiji
Same machine :-/. Keep them coming, I appreciate the help immensely!
Dan
+4  A: 

IE8 runs in different modes depending on if it's visiting a site running on localhost vs another server. It's weird, I know. I've run across this issue before as well. Use the developer tools (F12) and check which mode (Quirks, IE7 Standard, IE8 Standard, IE8 Compatibility) the browser is running in.

JungleFreak
Seriously? Holy stupid (I know of no good reason for it, however). So, can I guarantee my users will not see the incorrect version (quirks) when they visit the site?
Dan
I believe it has to do with the doctype declaration at the top of the HTML file. If it is not there, or it references an invalid DTD, then the browser goes into quirksmode.
JungleFreak
Alrighty then, fixing that immediately :P. Thanks JungleFreak!
Dan
Absolutely not a problem. Good luck!
JungleFreak