knowledge-kitchen

Responsive Design - Designing For A Multi-Device Ecosystem

designing for a variety of devices

  1. Overview
  2. Implications
  3. Approaches
  4. Conclusions

Overview

Concept

Responsive Design is a catchy term for design that works on a variety of different devices

Smartphone adoption

Almost all American adults now own a smartphone. Pew Research found 81% did in 2019, up from 35% in 2011. Younger adults reach 96% usage. Smartphone ownership

Smartphone vs. desktop ownership

A larger percentage of Americans own smartphones than do desktops. Smartphone vs. desktop ownership

Multi-device ecosystem

1/2 of adults also own a tablet device and half also own an e-reading device. Other device ownership

Smartphone-only

1/5 Americans do not have home Internet service, but rely on smartphones for Internet. This is more common among the younger and less affluent. Smartphone as only Internet connection

Flippening

Smartphone dominance is a recent phenomenon, flipping a few years ago. Pew Research chart of rural vs. suburban and urban Internet adoption

Implications

Constraints

The majority of Americans now consume content on The Web via their mobile devices. This imposes very specific constraints we have to consider in design.

Design effects

As a result, web pages that are usable on smartphones as well as desktops and tablets have adopted a few relatively new design features.

Approaches

Choices choices

Designers have tended to pick one or both of two responsive design approaches.

Prevent mobile devices from zooming in

By default, some browsers on mobile devices will automatically zoom into a page.

<meta name="viewport" content="initial-scale=1" />

Scaling layouts

The technique for scaling layouts is the simpler of the two.

Breakpoint-based layouts

Breakpoint-based layouts rely on a feature of CSS called media queries

Breakpoint-based layouts (continued)

Media queries specify the width at which a set of CSS code should be loaded.

<!-- load different CSS files for different browser widths -->
<link
  rel="stylesheet"
  media="only screen and (max-width: 480px)"
  href="css/mobile.css"
/>
<link
  rel="stylesheet"
  media="only screen and (min-width: 481px) and (max-width: 960px)"
  href="css/tablet.css"
/>
<link
  rel="stylesheet"
  media="only screen and (min-width: 961px)"
  href="css/desktop.css"
/>
<link rel="stylesheet" type="text/css" href="css/all_devices.css" />

Conclusions

You now have an understanding of the issues related to designing for a variety of devices.