« Using search to boost Alexa ranking | Home | Setting preferred domain name »

Stretchable pages

Words by Daniel Aleksandersen on 2006-08-10

Many Webpages are what we call stretchable. This means that their width is variable and not a fixed value. The page then conforms to the width of the readers browser-window and screen resolution.

A huge problem with these pages is that they work exactly like rubber bands. They will stretch and stretch until they finally break.

Here is how to prohibit these stretchable sites to be stretched too far:

max-width: 900px;

This single line of CSS styling gets left out almost every time, by almost every Web designer. By setting max-width the page effectively gets a maximum size, keeping it from stretching infinitely. The max-width should always be given a fixed value. That way the page will look more like it was intended to look like on widescreen enabled devices and projectors too.

Note that older Web browsers tends to have very limited support for max-width, but as these Web browsers would normally run on old computers, using small monitors – it is not a real problem.

2006

Copyright © Daniel Aleksandersen – Licensed under GNU FDL

Words: Daniel Aleksandersen on 2006-08-10 at @715.
Meta: Comments | PermaLink | TrackBack
Social: Add to del.icio.us | Sphere it
Tags:

Related entries

3 comments

Great metaphor. And yes, so simple to implement, yet so few do it.

Christian at 2006-08-10 @826.

I am pretty sure this breaks in IE, am I correct? It is definitely good to have - but I think you have to do some workarounds for IE 6+.

Nate K at 2006-08-10 @854.

[...] Read the whole story, courtesy of The Web Design Journal. [...]

webdev » Avoid rubber band layouts at 2006-08-10 @098.

Leave your comment




Find entries


Recent entries
News feed icon Get a free subscription to new entries in the The Web Design Journal!
Reader participation
Share your thoughs, and knowledge with other readers by submitting your own comments!
License

Creative Commons License
The blog entry Stretchable pages is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. More legal notes.
This blog is compatible with mobile browsers.
Home | Senior Cell Phone | California Amusement Park | Professional SEO Consultant | Legal Buds | San Diego Casino |
© 2006 - 2008