Windows XP Mode for Testing IE6 on Windows 7 Machine

When I was researching ways to run IE6 for browser testing purposes on my Windows 7 machine (other than with IE Tester, which is buggy, or Multiple IE, which I don’t think even runs on Windows 7), I came across XP Mode.

It’s simple to install, and it comes preinstalled with IE6. You don’t even need a serial number for XP. Just follow the steps on the page (they’re surprisingly straightforward) and you’re golden. The only thing that was even slightly tricky was configuring BIOS if your hardware virtualization isn’t turned on, but I managed with no problems, and I never do any configuration.

I never thought I’d say this, but “Thanks Microsoft for this helpful development tool.”

Installation page: http://www.microsoft.com/windows/virtual-pc/download.aspx

BIOS configuration instructions: http://www.microsoft.com/windows/virtual-pc/support/configure-bios.aspx

Why is background 1 pixel off in Firefox?

Okay, this one really stumped me. My non-repeating, centered content background was shifted one pixel to the left in Firefox, but looked correct in Safari and Internet Explorer. Something that looks right in Safari (the most compliant browser) and Internet Explorer (no comment) … hmmm. This was more perplexing than the usual randomness of IE’s bugs. After checking everything from floats to margins, I came across this post:

http://wordpress.org/support/topic/246908

The solution: move the css background-image from the body tag into a container, like the content wrapper. I would have done this initially by instinct, but since I’m using a CMS template, most of the layout was already done for me. Apparently, the body tag in Firefox is shifted one pixel to the left, and styling it with a background image results in that image being shifted also.

Textarea Scrolling in Firefox

1. Firefox will put a vertical AND horizontal scrollbar on a textarea by default.

To get rid of the horizontal scrolling, use this:

overflow-y: scroll; (or overflow-y: auto if you don’t want your scrollbar to appear if it’s not needed)
overflow-x: hidden;

Not this, as I’ve seen suggested on various blogs:

overflow: scroll;
overflow-y: scroll;
overflow-x: hidden;
overflow:-moz-scrollbars-vertical;

I’m not sure what the advantage is to the extra styles, as I’ve seen no difference in rendering.

2. Firefox will not wrap a single word. Use text with spacing for testing. I’ve made the mistake of testing with one long string of keyboard gibberish, and wondered why I could only get horizontal scrolling. Also, if you have your x-scrolling disabled, the string of characters that exceeds the width of the text box will be cut off from view.

Spaces are good.

Spaces are good

Single string is bad

Single string is bad

3. Be sure to set the height of the textarea great enough for the browser to render a scroll icon. If the textarea isn’t tall enough, all you’ll get is a gray box on the right hand side, which is still functional, but not intuitive.

With a specified height

With a specified height

Without a specified height

Without a specified height

(more…)

Without ambition one starts nothing. Without work one finishes nothing. The prize will not be sent to you.
--Ralph Waldo Emerson

I'm a web designer and writer based out of Nashville, TN, where I live with my husband, step-daughter, and chihuahua.

moonkatcreations at gmail dot com