Minggu, 12 April 2009

Resizing: Fixed Width vs. Liquid Width

Back when we were drawing layout blocks with pencil and paper, I explained that the first page element we had to think about was the containing block, and whether or not it would expand to fill the page. This decision is one that has plagued web designers for hundreds, if not thousands of years—all the way back to the days when we used tables and spacer.gif files to layout web page content. Okay, maybe that wasn’t actually thousands of years ago, but this is a long-standing debate nonetheless. In fact, the fixed-versus-liquid debate caused quite a bit of commotion back in December 2003 when two very influential designers, Douglas Bowman of Stopdesign and Dan Cedarholm of SimpleBits, simultaneously switched from liquid- to fixed-width layouts. This caused instant and unwarranted panic among the design and web standards community, whose members feared that this move marked the death of liquid layouts.

Since then, most designers have established their own opinions in regard to the fixed-versus-liquid debate. The decision to use one type of layout over the other should really be determined by the target audience and the accessibility goals of each individual web site. The pros and cons of each layout type are fairly well-defined, as Table 1.1 illustrates.

Table 1.1: Fixed- vs. liquid-width layouts—the pros and cons


Pros

Cons

Fixed width

v Designer has more control over how an Image floated within the content will look.

v Allows for planned whitespace.

v Narrower text blocks improve readability.

v Can appear dwarfed in large browser windows.

v Takes control away from the user.

Liquid width

v Adapts to most screen resolutions and devices.

v Reduces user scrolling.

v Text spanning a wide distance is more difficult to read.

v More difficult to execute successfully.

v Can cause a lack of, or awkward whitespace.

With these pros and cons in mind, I’ve designed more fixed-width layouts than liquid. I like having control over how the content will display, and working with the background space. On the lip side, I sometimes enjoy the challenges that liquid layouts bring to the table. But, regardless of personal preferences, it’s important to put the needs of your client first. If you’re deciding on the width of a axed-width layout, you have to think about the audience for which you’re designing, and create a layout that meets the needs of those users.

An Alternative: Variable Fixed-width Layout

The somewhat ironic term variable fixed-width layout was coined by Richard Rutter in It’s an excellent an article that he wrote to catalog his findings about this new trend discussion of the topic that provides some great examples.

The homepage of Simon Collison’s Colly Logic exhibits the best implementation I’ve seen of this new trend. When you expand your browser window from 800 pixels to 1024 pixels in width, the right-hand column splits into a third column. Figure 1.29 shows how it works.








Figure 1.29: Viewing Colly Logic at 800 and 1024 pixel widths

Colly Logic acts as an intermediary between fixed- and liquid-width designs. A handful of designers have been toying with this idea; CSS Beauty, one of the CSS gallery sites I mentioned earlier, takes a variable fixed-width approach to displaying features and advertising content

Three Columns with Content First

The majority of fresh three-column site designs that have been produced lately have put the content first. By first, I mean they’re locating the content on the far left of the display.

Figure 1.28: Putting content first at Vivabit.com

Although this isn’t really a new idea, it’s been picking up a lot of steam lately in both liquid- and fixed-width site designs. The majority of three-column layouts usually switch to a two-column structure outside the homepage. By placing the content on the left, the transition from three columns to two is more natural, as the content column can simply expand, rather than having to relocate completely. For example, if you visit any of the other main pages of the Vivabit site, the width of the content area seems simply to expand up and to the right when you navigate from the homepage into the site.

See also:

Veerle’s Blog, at http://veerle.duoh.com/

Django, at http://www.djangoproject.com/

Expansive Footer Navigation

If you scroll to the bottoms of pages on many of the most recently redesigned sites, you’re likely to see an interesting new trend. Rather than using the footer for main links and a copyright notice, many sites are expanding this neglected piece of page real estate to include contact information, expanded site navigation, and extra content such as blogrolls, linkrolls, Flickr badges, and so on. Although putting a site’s main navigational element at the bottom of the page isn’t a good idea, the concept of including “bonus” navigation and content in that space has taken off lately. As Figure 1.27 shows, JeffCroft.com is just one of the sites trying this approach.

Figure 1.27: Presenting extra content in the footer at JeffCroft.com

See also:

City Church, at http://www.thecity.org/

Powazek, at http://www.powazek.com/

Fresh Branding, at http://www.freshbranding.co.uk/

Fresh Trends

If you’re feeling so overwhelmed by the above resources that you can’t even contemplate starting a morgue file for inspiration, just take a few minutes to browse through those sites. Look past the colors and textures to the boxes that make up the layout, and try to identify Common ideas and design trends. By doing this, I’ve started to notice a few trends that seem to be emerging in web site layouts.