Cube Websites Blog

creative web design

Archive for the ‘HTML’ Category

How To: Check How Your Site Looks In IE6, IE7 and IE8 on a Mac

Requirements:

VirtualBox (FREE)
MultipleIEs (FREE)
Windows CD (XP recommended)

About

As a designer or a coder, you’ll reach a point when you want to make sure that your design looks consistent across the numerous Microsoft browsers using your Mac.

There are several ways to quickly check if it looks OK using sites like Browsershots and Adobe BrowserLab, however, those won’t actually allow you to browse the site so you can’t tell if your JavaScript is behaving as it should, your animation effects, hover effects - basically anything that moves.  In this case you’d need to get Windows working on your Mac.  There’s a few ways to do this too, including BootCamp, VMWare, Crossover.

The thing with BootCamp, is that you have to go out of OSX, and boot into Windows - which if you’re like me with over 10 applications open, is really inconvenient.
VMWare and Crossover come at a price, and from experience VMWare does use up quite a bit of resources (maybe it was just me).  So, the best solution I managed to find was: VirtualBox.  It’s a similar program to the others - it lets you install other operating systems on your Mac, but the biggest difference is that it’s FREE, and is quite light too (compared to the others).

How-To

  1. Install VirtualBox
  2. Run VirtualBox
  3. Go through the New Machine Wizard and install Windows XP
  4. Run the XP Virtual Machine
  5. Install IE8
  6. Install IE6 from Multiple IEs

Now, on your XP Virtual Machine you have IE8 and IE6, “but what about IE7?” you ask.  Well, Internet Explorer 8 has really handy developer tools which let you emulate IE7 (as if you were running IE7 itself).  To use it, just open IE, and select “Tools” > “Developer Tools”.  On there, you’ll notice the “Browser Mode” option, in which you select IE7!

Conclusion

So basically, all you need to get IE6, IE7 AND IE8 is VirtualBox and a Windows CD - Windows XP is highly recommended because it’ll let you run all 3 Internet Explorer versions on the same OS!  Most of the tools are free, and an XP CD can be bought pretty cheap from the net too if you don’t already have one.

Extra

  1. When testing sites, I normally upload them to a development site first - if you want to test a site on localhost such as MAMP or XAMPP on your Mac then I’ve found that visiting: http://10..0.2.2 in your virtual machine will work.
  2. When I first installed VirtualBox, the virtual machine would not connect to the Internet.  Now I’m no expert in Virtualization, but I found that by right-clicking my XP machine in the VirtualBox application window, selecting “Settings” and under “Network” setting “Adapter 1″ to “PCnet Fast III (Am79C973)”, and attached to “NAT” seemed to get things working for me.

I hope this is useful to you!  For me it’s the best way to test across multiple browsers and it worked out free seeing as I had my XP CD to hand.

Why you should always test your design!

AutoTrader is probably the biggest resource available for when it comes to car sales around the UK. Their website has never been too bad, and people were able to use it nicely, without much hassle, and no doubt great bargains were had, and huge profits made by utilising the AutoTrader website. That was until, they brought in their new “Beta” design.

If you’ve checked recently, AutoTrader have updated their website with a new look, currently tagged “Beta”. Now I know a lot of people are complaining that the new site doesn’t work properly - including problems with how it looks, and other problems such as the JavaScript only working sometimes.

The thing with JavaScript is - it’s always good to use it unobtrusively - that’s to say make a website that works without JavaScript, but then improve the experience for people who have Javascript. Don’t make it so that you block off a large part of your userbase just because they have JavaScript disabled. In AutoTraders case, obtrusive JavaScript is only the smaller issue….

Mozilla Firefox is the second most popular web browser in the world, and AdBlock Plus is one of the most popular addons for Firefox. Now here’s a couple of screenshots comparing how the AutoTrader site looks for users with AdBlock, and for users without it:

Adblock Enabled

Adblock Enabled

Adblock Disabled

Adblock Disabled

As you can see, people with advertisements disabled received a very limited view compared to people without it. Whether or not this is deliberate we can’t really say, but it’s definitely something that should not be overlooked. When I personally visited the web page (my default browsing is Firefox with AdBlock) I saw masses of whitespace and thought “Wow! What an eyesore!”. The whole site looked hideous, with just so much white and bright blue text stuck inbetween.

No doubt AutoTrader are being plastered with complaint emails, but this is a mistake that should never have happened. In the meantime, we can all learn a few lessons from this:

  • If you have a new site that you want to test, DONT launch it to the general public. Have a select group of testers who can opt-in to test the Beta version, provide feedback, and only when you know that everything’s working do you make it available to the mass-public.
  • Use unobtrusive JavaScript
  • Don’t rely on adverts to make your site look right