Responsive Web Design

Responsive Web Design

Responsive Web Design (RWD) is a web design approach aimed at building websites to provide an optimal viewing experience across a wide range of devices from mobile phones and tablets to laptops and desktop computer monitors.

Responsive web design allows for easy reading and navigation with a minimum amount of resizing, panning, and scrolling and should adapt to your device.

A responsive site design adapts the layout to the viewing environment by using fluid, proportion-based grids, flexible images and CSS3 media queries.

  • The fluid grid concept calls for page element sizing to be in relative units like percentages, rather than absolute units like pixels or points.
  • Flexible images are also sized in relative units, so as to prevent them from displaying outside their containing element.
  • 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.
  • Server-side components (RESS) in conjunction with client-side ones such as media queries can produce faster-loading sites for access over cellular networks and also deliver richer functionality/usability avoiding some of the pitfalls of device-side-only solutions.

Media Queries is an excellent collection of inspirational websites using media queries and responsive web design.

What is Media Queries and how are they used in Responsive Web Design?

Media Queries is a W3C Candidate Recommendation —a widely reviewed document which is ready for implementation by browser vendors.

It’s an extension of media dependent stylesheets designed and tailored for different media types like screen and print and is found in both CSS2 and CSS3.

A media query, in it’s essence, consists of a media type and an expression to check for certain conditions of a particular media feature.

One of the most commonly used media features is width and we use CSS rules to restrict the width of a certain device displaying a web page, we can then tailor the page’s representation to devices, for example on smartphones, tablets, netbooks, and desktops with varying screen resolution.