The Two Types of Browser Zoom

January 16, 2009

From the dawn of the web – at least since Netscape Navigator 4.x – it has been possible to resize the text on a web page. This is typically done through the View menu.

netscape 4.x View, Font menu

This was fine in the early, primitive days of the web, when page layouts were simple and unsophisticated. Want the font to be three times larger? No problem! Pump it up until your eyes bleed; you're unlikely to break the design, because there's precious little design at all.

yahoo-homepage-circa-1998.png

But this was a time long before the web had become a platform for full-blown applications, with complex, dense, almost GUI-like designs.

The accepted web design guidance is that you should generally produce web page layouts that work at:

  1. the default font size (obviously)
  2. one size below the default font size
  3. one size above the default font size

I agree, and you should be testing for this on your own websites. The handy keyboard equivalents in most browsers are:

Ctrl + 0   Reset font size to default

Ctrl + +   Make font one size larger

Ctrl + -   Make font one size smaller

(yes, holding down the Ctrl key and then scrolling your mouse scroll wheel works, too, but no real programmer would use that.)

It is important to let the user control their browsing experience. But I think that the traditional method of font-only browser sizing is a solution whose time has come and gone. There's a better way. Opera was the first browser to introduce full page zoom as an alternative to traditional font sizing, but Firefox 3 is where most people actually experience it. In fact, in Firefox 3, it's the default page sizing mode.

Firefox 3 View, Zoom menu

Note that "Zoom Text Only" is unchecked. And for good reason. Compare for yourself. Here's the Digg homepage using old-school Netscape 4.x style font scaling.

Browser Font Scaling: Default

digg-text-zoom-default-thumb.png

Browser Font Scaling: Size +1

digg-text-zoom-plus-1-thumb.png

Browser Font Scaling: Size +2

digg-text-zoom-plus-2-thumb.png

Digg follows the design rule of thumb I suggested above: it scales to font size +1, but beyond that, all bets are off. With the fonts at +2, the top menu is scrunched, the search box clipped, and the digg numbers are spilling out over the boxes. The "most recent" navigation element has completely disappeared! Now compare this with the newer method of full page zooming:

Browser Full Page Zoom Scaling: Default

digg-page-zoom-default-thumb-256.png

Browser Full Page Zoom Scaling: Size +1

digg-page-zoom-plus-1-thumb-256.png

Browser Full Page Zoom Scaling: Size +2

digg-page-zoom-plus-2-thumb-256.png

While the page does get wider, the full page zoom method has tremendous advantages:

  1. Full page zoom works on almost every web page in the world, with no changes whatsoever by the web designers
  2. Full page zoom scales far, far beyond the +1/-1 sizes that you can reasonably expect from traditional browser font sizing approaches.

To prove that full page zoom scales like nobody's business, here's a screenshot I captured of the Digg homepage scaled to fit the entire width of my 1920 x 1080 monitor. In comparison, increasing the fonts beyond +2 results in a jumbled, unreadable mess.

Honestly, I can't see much use for traditional browser font sizing. It's increasingly fragile on today's web. I wish more browsers would take the lead from Firefox 3, and adopt full page zoom as the new default page sizing method.

Posted by Jeff Atwood
104 Comments

coool! i didn't about know about this feature :)

anon on February 6, 2010 11:13 PM

I just turned on Text-Only resize before coming here. (FF3)

I like it better because it keeps the width of the website the same (unless they size box widths using em). Frankly, if a site has such small font size that it needs +2/+3 and breaks into a mess... well that website is a mess. It's just one of the many ways that designers fail, and zoom doesn't solve that. Zoom pretends that the web is like a PDF where everybody has the same fonts, screen sizes, etc...

Anon on February 6, 2010 11:13 PM

when I started using opera (version 6), the full page zoom made images look so bad I hated it and I left messages on the user forums and even emailed the then CTO (how come wee lee) after he allowed his email address to be published in a Register interview. He even replied!

Now the image resampling is excellent and due to the problem of changing font sizes breaking layouts I now rather like the full-page zoom. It's particularly good for watching Homestarrunner. Though there is still the rare occasion when it would be useful to resize only the text.

John Ferguson on February 6, 2010 11:13 PM

Yuck. Full-browser zooming looks like crap. Scrolling gets wacky. It's really just plain stupid to expect people to use this. Layouts should accommodate at least up to a font size of 24px (the default is 9). Designers lay their pages out so that you don't have 90-mile-long scroll bars, and all the divs are well positioned, and the user can be funneled to the right locations via their senses. Full-browser zooming, therefore, completely defeats the user's experience and the designer's hard work. In my opinion, programmers of the DOM and SGML have gotten very lazy, to have not upgraded this important usability feature, yet. Now, if I want my site to be acceptably accessible, I have to develop a work-around, and I can't expect the pages I browse to to be very accessible. Big thumbs-down for endorsing this.

Jeremybotto on September 13, 2010 8:11 PM

«Back

The comments to this entry are closed.