Chapter 3. Responsive Layout

In this chapter, you will learn about:

  • Responsive layout with the min-width and max-width properties
  • Controlling your layout with relative padding
  • Adding a media query to your CSS
  • Creating a responsive width layout with media queries
  • Changing image sizes with media queries
  • Hiding an element with media queries
  • Making a smoothly transitioning responsive layout

Introduction

This chapter has some challenging recipes. Responsive layouts often present some difficult challenges that can push you to create a great solution. With responsive design methods you can do much more, and do it more efficiently. Responsive layouts have introduced a whole new area of challenges to web development and a new dimension of excitement.

Get HTML5 and CSS3: Building Responsive Websites now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.