responsive web design

nowadays, people access the internet from an ever-growing range of devices with very different screen sizes and controls (mouse vs fingers).

this poses some very real design and usability issues because most websites are only designed to be viewed on big screens and navigated by mouse. this is clearly the old way of doing things – residue from an age where you could make reasonable assumptions about the user’s screen size.

modern websites will have to adapt for all kinds of screens and controls. websites should look and work just as well on an android-phone and an ipad, as they do on a desktop computer. the modern website fits the device, instead of commanding that the device fits the website.

luckily, we have an elegant and straight-forward way of achieving this dream – it’s called responsive web design.

responsive web design

a list apart has written an excellent introduction to the topic. in short, responsive web designs adapt the layout of the page depending on the screen size of the device that renders the page.

in practice, this is done by clever use of media queries – a part of the css3 specification. media queries allow you to conditionally apply subsets of css styles depending on the media – the device – that renders the page. including screen size.

this means your website can respond to the screen size of the device that renders it – rearrange elements, increase or decrease font-sizes, etc. so the design looks and works just as good on an smartphone as it does on a desktop computer. that’s responsive web design.

designing for multiple devices

the most obvious aspect of responsive web design is handling varying screen sizes. on a desktop computer you may want a three-column layout, whereas on a smartphone the limitations of the small screen often force you to fall back on a one-column layout. images will have to be scaled down and up nicely. and so on and so on.

however, there’s more than just screen size to think of when doing a responsive web design. you’ll also want to think about the way the user controls your website – by mouse or with their fingers? incidentally, the controls on most smartphones are much less precise because they are controlled with a touch screen instead of a mouse.

this forces you to put links and buttons at a certain distance from one another so user’s don’t click the wrong one by accident. site navigation often has to be rethought.

another big difference is that you can no longer expect hover to be available since touch devices don’t offer this functionality (not yet, anyways). so your site must be usable and accessible without hover.

is it worth it?

mobile browsing is exploding these days and the percentage of visitors on most sites is getting too big to ignore (at baymard.com it’s already above 10%). and mobile internet usage is only going one direction, and that’s up.

at first, responsive web design sounds like a lot of work. however, compared to creating a dedicated site for smartphones, and one for tablets, and one for desktops, simply altering the layout of a single site is much easier to implement and (just as importantly) maintain.

responsive web design definitely forces you to approach your web designs in a different way. however, once you get the hang of it, responsive design is actually fairly straight-forward.

considering all you need is a couple of days to turn your website into an iphone-, ipad-, android-, blackberry-optimized website, i feel safe saying “yes, responsive web design is worth it.”

responsive web design is the future, and betting on the future is hardly a bad idea.

agree? disagree? feedback?