7 Principles Of Responsive Web Design
With many of us using multiple devices to view content online, designing responsive websites is the way forward to ensure an optimum user experience. Here are seven vital principles that underpin responsive web design.
1. Mobile or desktop first
Should you start responsive web design from a small mobile screen and scale it up to a desktop, or the other way around? There’s no right or wrong answer. Much depends on the purpose of your site and who you’re designing it for. Having said that, it’s a good idea to consider both perspectives when you begin, to see which route might work better for you.
2. Responsive vs adaptive web design
You could be forgiven for thinking responsive and adaptive web design are the same, but that’s not the case. Although they complement each other, they offer distinct purposes. With responsive design, you get one layout that changes and adjusts according to the device used. On the other hand, adaptive design focuses on various separate layouts for different screen sizes. Responsive web design is easier and quicker to build and maintain, but offers less control than adaptive design. Decide which is the right option for your needs.
3. Min and max values
Setting minimum and maximum values for pixel width is really useful when it comes to responsive web design. It means you can control how much content fills a screen, by setting upper and lower limits, so that it suits that particular device.
A vital component of responsive web design, breakpoints change the layout of your content at specific points, so that it’s easier to digest. Breakpoints will vary according to the device you use, and often involve a change in the number of columns. To use breakpoints effectively, think carefully when and where to use them within your content. Overuse or incorrect application can cause confusion.
5. Nested objects
Nesting objects rather than displaying them individually lets you wrap elements with containers, to keep everything looking neat, tidy and logical. Nested objects are affected by changes made to their main container, where objects can include text, images or HTML tags. Should a container be moved or scaled, the nested content in the container is updated accordingly.
6. Relative units
Relative units are key to responsive web design and font sizes, offering great flexibility. If you use relative units, content text resizes itself if you decide to change the browser’s default font size. Thinking in percentages is useful when it comes to relative units, so, for example, if you opt for 50% width, this will take up half the screen, whatever size of device you use. Static units are the opposite to relative units, where the content’s pixel size is fixed.
7. The flow
With responsive web design, flow of content takes priority over pixels and points. This is because smaller screen sizes dictate that content needs to flow vertically, rather than horizontally. The design adapts its flow according to the width of the screen. Focusing on flow can be hard at first for the newbie responsive web designer, but should get easier as you get used to this concept.