Internet Explorer 8 ignores the media queries that widen a phone-first layout. Load a small script or a separate stylesheet for old Internet Explorer, then test the menu and forms on a Windows XP machine before launch.

Right on the phone, wrong at the office

A new responsive site goes live. It looks right on phones, on tablets and in the browsers the designer and the staff use every day.

Then a customer calls from an office. On her wide screen the site is a single narrow column, with a menu button that does nothing and buttons sized for a thumb.

Her computer runs Windows XP with Internet Explorer 8, like many office computers.

Why Internet Explorer 8 is still on office desks

Internet Explorer 8 is the last version that runs on Windows XP. Offices still on XP cannot install anything newer, and Microsoft supports XP until next April.

Some companies also keep it on newer computers, because an older system they rely on works only in that browser.

If your customers are other businesses, a share of your visitors may be sitting in front of exactly that setup.

Phones first, then wider screens

Many responsive sites are now built phone first. The main stylesheet describes the phone layout, and media queries add the wider layouts once the screen passes certain widths.

Internet Explorer 8 does not understand media queries, so it skips every rule inside them. What remains is the phone layout, stretched or centred on a large screen.

That is not the only gap. Internet Explorer 8 also misses several other things a new site may rely on:

Each needs a decision before launch, and the first needs one most urgently.

A menu button that does nothing

The phone layout hides the menu behind a button, and a script opens it. If that script relies on features Internet Explorer 8 lacks, the button does nothing and the menu never appears.

Forms can fail the same way. A date picker, a map or a quote calculator that works everywhere else can show an empty box or an error message.

A small script for old Internet Explorer

One fix is a small script that reads the media queries in your stylesheet and applies them in browsers that cannot. It restores the wider layouts without changing the stylesheet itself.

It is loaded through a conditional comment, a note in the page's code that only old versions of Internet Explorer read. Every other browser skips it.

The script has limits. It reads only stylesheets linked from the same site, and a slow computer may show the phone layout for a moment before the page settles.

A second small script, loaded the same way, introduces the newer page elements to Internet Explorer 8 so that its styles apply to them.

Or a stylesheet of its own

The other fix is a separate stylesheet for old Internet Explorer, loaded through the same kind of conditional comment, that contains the desktop layout without any media queries.

Internet Explorer 8 then gets a fixed desktop layout, which suits office screens and needs no script. The cost is a second stylesheet to keep in step with the first, which a well-organised build can produce automatically.

A worked example

A barge company in Powell River carries building materials, machinery and vehicles to islands, camps and building sites along the coast. Most bookings come from dispatchers and site offices.

Its new responsive site went live in August, with a sailing schedule, a rates page and a quote request form. Within days, two regular customers called about a site that looked like a phone page.

Both offices ran Windows XP with Internet Explorer 8. The stylesheet was built phone first, the menu script needed a newer browser, and the quote form's date picker showed an empty box.

The developer added a separate stylesheet for old Internet Explorer with the desktop layout, plus the small script for the newer page elements. In that browser the menu now shows as a plain row of links.

Where the date picker cannot run, plain day, month and year fields take its place. Everything was tested on an old XP machine kept in the dispatch office.

Office customers get a layout written for their browser rather than one meant for a phone, and the quote form works on the computers they book from.

Testing on the machine customers use

Your analytics reports list visitors' browsers and versions, so you can see whether Internet Explorer 8 matters to your site and which pages its users visit.

Test on a real computer running Windows XP and Internet Explorer 8, or a virtual machine. The developer tools in newer versions can imitate version 8, a fair first check but no substitute.

Compatibility View on office networks

Internet Explorer can also show a page in Compatibility View, which imitates an even older version. Some office networks switch it on for every site.

One line added to each page's head tells Internet Explorer to display the page in the most recent mode it supports. Add it, then test again with Compatibility View switched on.

The counter-case

A coffee shop whose visitors arrive almost entirely from phones and home computers may decide that a plain, readable layout in Internet Explorer 8 is enough. That is a fair choice if its analytics support it.

The browser's share of visitors is also shrinking as offices replace Windows XP before its support ends next April.

Wherever customers browse from offices, though, the basics must work there: the layout, the menu and the forms. A new site that looks like a phone page at a customer's desk makes a poor first impression.

An old machine on the launch list

  1. Check your analytics for Internet Explorer 8 visits.
  2. Open the site on Windows XP with Internet Explorer 8.
  3. Restore the desktop layout with a script or a stylesheet of its own.
  4. Introduce the newer page elements with a small script.
  5. Ask for the newest mode in each page's head.
  6. Test the menu, forms and schedules on that machine.
  7. Add the old machine to every launch checklist.

Step six is where launches most often fall short. The layout can look right in old Internet Explorer while the menu or a form fails without any message, and only a real test shows it.

Internet Explorer 8 draws rounded corners and shadows made in code as plain square boxes, as rounded corners and shadows built from dozens of images explains.


Frequently asked questions

Why does my new site look like a phone page in Internet Explorer 8?

It was built phone first, with media queries adding the wider layouts. Internet Explorer 8 ignores media queries, so it shows only the phone layout.

Who still uses Internet Explorer 8?

Many office computers running Windows XP, which cannot install a later version, and some company networks that keep it for older systems they rely on.

What restores the desktop layout?

A small script that applies the media queries in old Internet Explorer, or a separate stylesheet with the desktop layout, loaded only for those versions.

Do newer page elements work in Internet Explorer 8?

Not on their own. Its styles ignore elements such as header, nav and section until a small script introduces them to the browser.

Can I test in a newer Internet Explorer instead?

Its developer tools can imitate version 8, which is a useful first check, but test the real browser on Windows XP before launch.

Is Internet Explorer 8 worth supporting at all?

Check your analytics. If customers visit from offices, the layout, menu and forms should work there. Windows XP support ends next April, but offices still use it.

West Coast Media Solutions Inc. provides web design, web development, hosting, digital marketing, and business consulting to organisations across Canada, drawing on more than twenty-five years in the field.

Customers seeing a phone page at the office?

Give us the address of your new site, and we will open it in Internet Explorer 8 on Windows XP and report back.

Start a Conversation