Responsive web design
Responsive web design (RWD) comprises a set of techniques for creating web pages which respond to a wide range of devices.
The media query is central to responsive web design.
See also Responsive web design layout.
Contents
Range of device sizes
- Desktop computer monitors
- Laptop computers
- Tablets
- Mobile phones
RWD provides for easy reading and navigation with a minimum of resizing, panning, and scrolling.
Design principles
The fundamental principles of RWD are:
- Proportion-based ("fluid") CSS grids
- Proportion-based ("flexible") images
- Media queries
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
Images are sized in relative units, 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
- Bootstrap (framework)
- Bootstrap responsive image
- Media queries
- Responsive web design layout
- Web browser width
- Web design
- Web usability