WiredWorx || Web design || SEO || Bournemouth

Web design, website development and search engine optimisation (SEO) in Bournemouth, Dorset, UK.

Forcing ie8 compatibility mode

Comments (0)

We all know that the last thing that really should be done is to try to force browsers into something they don't want to but when it comes to internet explorer, sometime there's nothing else for it!

I had a bit of a nightmare with one of my sites which was fully tested and working brilliantly in ie6, ie7, FireFox 2, FF3, Chrome etc but then when we tested it in ie8 it started to play up - although all the pages fed form the same page template and were working fine there was one that wasn't! It seemed that some of the objects on the page were not displaying even though they should have been when in normal mode, but worked correctly in compatability mode. The only real explanation was that ie8 was interpretting the z-index incorrectly or something? After a while of changing z-indexes in the css to try and remedy the problem I decided to find a work around instead!

After a while i found this absolute gem:

<.meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
(take the "." out before meta - it would not display correctly otherwise!)

As I said personally I'd only use it as a last case scenario, but sometime internet explorer drives you to these things ;o)

Comments

No commenting allowed at this time.

No commenting allowed at this time.