views:

1103

answers:

3

I just developed a small website and tested it locally in IE8, there is no compatibility view button but under settings i find an option called "display intranet sites in compatibility view", this option is checked so i trust that all local files are rendered as IE7.

I then upload the page to my server and everything works fine in IE8-mode, now the the comp-view button is visible, i click it and my design becomes fubar!

I go to the settings for comp-view and uncheck the "display intranet sites in compatibility view", the site still looks ok when i try to browse it directly from the hdd and there is still no comp-view button visible.

This time i managed to create a fix in my css quite easily but i don't want to experience this again for a larger website.

How can i get BOTH IE8-mode and compatibility view for local pages and can i trust that it is active or not?

A: 

Instead of checking the "Display intranet sites in compat" try checking the "display ALL sites in compat". Thats what I usually do and it seems to work ok.

Darko Z
+4  A: 

If you load files off your C:\ (e.g. that kind of local) then yes, you are forced into IE8 standards mode (and the only way to toggle it is to use the developer toolbar F12 and toggle it there.

If by local you mean off a webserver running on your PC or on a PC in your network (e.g. Intranet) then you can add it/them to the list of sites... they will then provide the icon on the address bar to toggle it.

I presume based on your description that you are seeing significant changes thus I presume you have set a DOCTYPE. Can you verify this for us?

scunliffe
I'm loading the files from the filesystem, i have a doctype, and fubar might have been an overstatement. When working with IE my temperament for some reason seem to change...Pressing F12 solved the problem, thanks.
thanks, I was looking for this exact answer too
Litso
Thanks! I don't see why they'd disable that option for local files.
Pandincus
A: 
Stoik