Scaling vs. fluid vs. responsive
There is a lot of confusion over these terms and designers often incorrectly use them interchangeably. In truth, each of these are distinct evolutionary steps in layout technique that have emerged over time in line with advances in technology. Scaling layouts are designed to scale every element relative to every other element. They are responsive in the sense that they will scale the content dynamically in response to changes in the size of the viewport. The layout itself remains static, changing the size of every element to maintain a consistent appearance. Above: example of a scaling layout at different resolutions: the design sacrifices readability for consistency. Fluid layouts are different because they scale container elements relative to the size of the viewport. This is achieved by using relative units such as ems to overcome the problem of shrinking text. The design can be broken by the user scaling it. Above: example of a fluid layout at different resolutions: the design sacrifices consistency for readability. Responsive layouts don’t scale anything. Instead, they change what is displayed depending on the size of the viewport. Above: an example of a responsive layout at different resolutions.Disaster 1) Wrapping menus
If you use a navbar at the top of your page, a responsive design is supposed to “snap” it to a more compact format when the page is displayed on a small screen. But this does not always work perfectly if the display area is wider than the break point, but too small to display all the menu items in a single line. The result is a menu that wraps. There are several ways to solve this problem. The first is to reduce the number of items displayed horizontally on the navbar by sorting them into categories and sub-categories. You can then use drop-down items to display the sub-categories when a category is selected. The second way is to change the break point to a lower value. The actual number to use is the width at which your navbar starts to fail, not a specific device size. The third way is to use a different menu for devices, such as a sliding drawer.Disaster 2) Using fixed width images
Content areas are usually set to a size relative to the viewport. So when a fixed-width image is wider than the size of the area, image cropping occurs. Above: example of a bad fixed-width image that is too large: now it has scroll bars and content is pushed off-screen. You can avoid this problem by using relative units to set the width of the image, or if you use a framework that supports it (such as Bootstrap) you can use a responsive image class (eg: class="img-responsive"). Above: The same element with a responsive image class approach: now scroll bar is gone.Disaster 3) Element distortion
This one is a bit more obscure, but essentially what happens when your layout is displayed on a small viewport is that any unhandled columns behave like rows. This is a problem because the distortion of the content unintentionally changes the hierarchy of your design. Above: column becomes a row, distorting content. The solution is obvious, yet it is surprising how many people struggle with it: simply set the height, width, and padding of the element explicitly. If it moves out of position and covers other elements, you can force it to be where you want by wrapping it in a div and setting margins.Planning helps avoid mistakes
This article has discussed only the 3 most commonly encountered responsive design disasters, but there are plenty of other ways for a good design to go wrong. Preventing errors is not too difficult. Modern browsers have built-in responsive layout testing, so plan your design well and test often.Emma Grant
Emma Grant is a professional freelance content writer from Ireland. Over the past three years she has travelled the world while running her business from her laptop. You find her at www.florencewritinggale.com
Read Next
LimeWire Developer APIs Herald a New Era of AI Integration
Generative AI is a fascinating technology. Far from the design killer some people feared, it is an empowering and…
By WDD Staff
20 Best New Websites, March 2024
Welcome to our pick of sites for March. This month’s collection tends towards the simple and clean, which goes to show…
Exciting New Tools for Designers, March 2024
The fast-paced world of design never stops turning, and staying ahead of the curve is essential for creatives. As…
Web Tech Trends to Watch in 2024 and Beyond
It hardly seems possible given the radical transformations we’ve seen over the last few decades, but the web design…
By Louise North
6 Best AI Productivity Apps in 2024
There’s no escaping it: if you want to be successful, you need to be productive. The more you work, the more you…
By Simon Sterne
3 Essential Design Trends, February 2024
From atypical typefaces to neutral colors to unusual user patterns, there are plenty of new website design trends to…
Surviving the Leap from College to Real-World Design
So, you’ve finished college and are ready to showcase your design skills to the world. This is a pivotal moment that…
By Simon Sterne
20 Mind-Bending Illusions That Will Make You Question Reality
Mind-bending videos. Divisive Images. Eye-straining visuals. This list of optical illusions has it all. Join us as we…
By Max Walton
15 Best New Fonts, February 2024
Welcome to February’s roundup of the best new fonts for designers. This month’s compilation includes some innovative…
By Ben Moss
The 10 Best WordPress Quiz Plugins in 2024
Whether it’s boosting your organic search visibility or collecting data for targeted email marketing campaigns, a great…
By Robert Reeve
20 Best New Websites, February 2024
It’s almost Valentine’s Day, so this latest collection is a billet-doux celebrating the best of the web this month.
Everything You Need to Know About Image Formats In 2024
Always trying to walk the tightrope between image quality and file size? Looking to branch out from JPGs and PNGs this…
By Robert Reeve