Elements of responsive web design
A site designed with RWD uses CSS3 media queries, an extension of the @media 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 like pixels or points.
- Flexible images are also sized in relative units (up to 100%), so as to prevent them from displaying outside their containing element.
What Is Mobile Responsive Design?
When a website is responsive, the layout and/or content responds or adapts based on the size of screen they are presented on. A responsive website automatically changes to fit the device you're reading it on. Typically there have been four general screen sizes that responsive design has been aimed at: the widescreen desktop monitor, the smaller desktop (or laptop), the tablet and the mobile phone. As you can see in the examples below, as the screen gets smaller, the content shifts and changes to the best display for each screen.