views:

261

answers:

3

I am experiencing a strange problem with my website today. I have my local code in aspx , which i can browse perfectly in ie and firefox, I publish it in my computer and create a virtual web site and then browse it with both firefox and ie like http://localhost/testwebsite/default.aspx and it displays also perfectly but when switching from localhost to my local ip address the page displays strange in the element layout, they lay in strange order not like they should.

I am not being able to figure out this problem? Is it some new problem of ie. What is so different when browsing by localhost and ip for the same published code. The only one doubt would be about relative css and javascript paths but we checked them and they appear fine.

A: 

Try using something like Firebug to see that all of your file references are in fact correct. You might be missing some default CSS that is mostly overridden. If you install firebug, you can see that even though you requested a file you are not getting it, plus a whole lot of other stuff that might help in future scenarios.

MJB
Of course i am using firebug and web developer tools and everything was ok about relative paths. Anyway i published my code, the same exact code and it seems ok now in both browsers but still i think what was interpreted so differently because i might still have the same problem in the future and we should learn as much as we can from our mistakes.
Izabela
+2  A: 

Try adding the following meta tag to the head of your page:

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

I was having a similar problem with IE8 forcing an intranet site of mine to be viewed in IE7 compatibility mode.

MarkKBS
A: 

Thank you, it works!

golf
Please use the comments system to respond to peoples like that. Read the faq! :)
Iznogood