Responsive web design (RWD)

Responsive web design (RWD) is a web design approach aimed at crafting sites to provide an optimal viewing experience—easy reading and navigation with a minimum of resizing, panning, and scrolling—across a wide range of devices (from desktop computer monitors to mobile phones)

A site designed with RWD  uses CSS3 media queries,  an extension of the  rule,  to adapt the layout to the viewing environment—along with fluid proportion-based grids and flexible images:. 

  • Media queries allow the page to use different CSS style rules based on characteristics of the device the site is being displayed on, most commonly the width of the browser.
  • The fluid grid concept calls for page element sizing to be in relative units like percentages or ems, rather than absolute units likepixels or points. 
  • Flexible images are also sized in relative units (up to 100%), so as to prevent them from displaying outside their containingelement. 

“Mobile first” and “unobtrusive JavaScript“/”progressive enhancement” (strategies for when a new site design is being considered) are related concepts that predated RWD: browsers of basic mobile phones do not understand JavaScript or media queries, so the recommended practice is to create a basic web site then enhance it for smart phones and PCs—rather than try “graceful degradation” to make a complex, image-heavy site work on the most basic mobile phones.

Where a web site must support basic mobile devices that lack JavaScript, browser (“user agent”) detection (also called “browser sniffing”), and mobile device detection[15][18] are two ways of deducing if certain HTML and CSS features are supported (as a basis for progressive enhancement)—however, these methods are not completely reliable.

For more capable mobile phones and PCs, JavaScript frameworks like Modernizr, jQuery, and jQuery Mobile that can directly test browser support for HTML/CSS features (or identify the device or user agent) are popular. Polyfills can be used to add support for features—e.g. to support media queries (required for RWD), and enhance HTML5 support, on Internet Explorer. Feature detection also might not be completely reliable with older browsers: some may report that a feature is available, when it is either missing or so poorly implemented that it is effectively nonfunctional.

There are now many ways of validating and testing RWD designs,[30] ranging from mobile site validators and mobile emulators[31] to simultaneous testing tools like Adobe Edge Inspect.[32] The Firefox browser and the Chrome console offer responsive design viewport resizing tools, as do third parties.

Luke Wroblewski has summarized some of the RWD and mobile design challenges, and created a catalog of multi-device layout patterns.[21][22][23] He suggests that, compared with a simple RWD approach, device experience or RESS (responsive web design with server side components) approaches can provide a user experience that is better optimized for mobile devices.[24][25][26] Server-side “dynamic CSS” implementation of stylesheet languages like Sass can be part of such an approach.

One problem for RWD is that banner advertisements and videos are not fluid.[27] However search advertising and (banner) display advertising support specific device platform targeting and different advertisement size formats for desktop, smartphone, and basic mobile devices. Different landing page URLs can be used for different platforms,[28] or AJAX can be used to display different ad variants on a page.[18][22][29]

There are now many ways of validating and testing RWD designs,[30] ranging from mobile site validators and mobile emulators[31] to simultaneous testing tools like Adobe Edge Inspect.[32] The Firefox browser and the Chrome console offer responsive design viewport resizing tools, as do third parties

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a comment