Animated GIF in IE stopping

The accepted solution did not work for me. After some more research I came across this workaround, and it actually does work. Here is the gist of it: function showProgress() { var pb = document.getElementById(“progressBar”); pb.innerHTML = ‘<img src=”https://stackoverflow.com/questions/780560/./progress-bar.gif” width=”200″ height =”40″/>’; pb.style.display = ”; } and in your html: <input type=”submit” value=”Submit” onclick=”showProgress()” /> … Read more

IE11 Document mode defaults to IE7. How to reset?

By default, IE displays webpages in the Intranet zone in compatibility view. To change this: Press Alt to display the IE menu. Choose Tools | Compatibility View settings Remove the checkmark next to Display intranet sites in Compatibility View. Choose Close. At this point, IE should rely on the webpage itself (or any relevant group … Read more

X-UA-Compatible is set to IE=edge, but it still doesn’t stop Compatibility Mode

If you need to override IE’s Compatibility View Settings for intranet sites you can do so in the web.config (IIS7) or through the custom HTTP headers in the web site’s properties (IIS6) and set X-UA-Compatible there. The meta tag doesn’t override IE’s intranet setting in Compatibility View Settings, but if you set it at the … Read more

Running Internet Explorer 6, Internet Explorer 7, and Internet Explorer 8 on the same machine

I wouldn’t do it. Use virtual PCs instead. It might take a little setup, but you’ll thank yourself in the long run. In my experience, you can’t really get them cleanly installed side by side and unless they are standalone installs you can’t really verify that it is 100% true-to-browser rendering. Update: Looks like one … Read more

How to detect IE11?

IE11 no longer reports as MSIE, according to this list of changes it’s intentional to avoid mis-detection. What you can do if you really want to know it’s IE is to detect the Trident/ string in the user agent if navigator.appName returns Netscape, something like (the untested); function getInternetExplorerVersion() { var rv = -1; if … Read more

Override intranet compatibility mode IE8

It is possible to override the compatibility mode in intranet. For IIS, just add the below code to the web.config. Worked for me with IE9. <system.webServer> <httpProtocol> <customHeaders> <clear /> <add name=”X-UA-Compatible” value=”IE=edge” /> </customHeaders> </httpProtocol> </system.webServer> Equivalent for Apache: Header set X-UA-Compatible: IE=Edge And for nginx: add_header “X-UA-Compatible” “IE=Edge”; And for express.js: res.set(‘X-UA-Compatible’, ‘IE=Edge’)

Inline block doesn’t work in internet explorer 7, 6

In IE6/IE7, display: inline-block only works on elements that are naturally inline (such as spans). To make it work on other elements such as divs, you need this: #yourElement { display: inline-block; *display: inline; zoom: 1; } *display: inline uses a “safe” CSS hack to apply to only IE7 and lower. For IE6/7, zoom: 1 … Read more