Difference between revisions of "Responsive web design"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(Design principles)
(Media queries)
Line 30: Line 30:
 
=== Media queries ===
 
=== Media queries ===
  
[[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.
+
[[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 [[Web browser width|width of the browser]].
  
 
== Bootstrap framework ==
 
== Bootstrap framework ==

Revision as of 15:33, 7 March 2016

Responsive web design (RWD) comprises a set of techniques for creating web pages which respond to a wide range of devices.

Range of device sizes

Ease of reading and navigation

RWD provides for easy reading and navigation with a minimum of resizing, panning, and scrolling.

Design principles

A site designed with RWD adapts the layout to the viewing environment by using:

Fluid Grid

The fluid grid concept calls for page element sizing to be in relative units like percentages, rather than absolute units like pixels or points.

Proportion-based images

Flexible images are also sized in relative units, so as to prevent them from displaying outside their containing element.

Media queries

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.

Bootstrap framework

You can write your responsive web pages from scratch, but I recommend starting with a framework, such as Bootstrap.

See also

External links