Chapter 15 Responsive Web Design

Web Designers

RWD Responsive Web Design was coined by Ethan Marcotte in 2010

Current RWD

Creating RWD Page...

Strategies for Using Media Queries

  1. Single columns for small devices; float and multiple columns for large devices
  2. Fluid width; set widths to 80% for desktop; 100% for smart phone
    Text book errata authors is using flexible grid, CSS 3 added flex box module, fluid grid is historical name
  3. Desktop white space increases readbility; smart phone shrink margins and padding
  4. Desktop smaller text and large font-size headers; smart phone increase overall text size but no large headers
  5. desktop fancy tabs and/or buttons for navigation, smart phone drop down hamburger menu, finger only links
    Can use different JavaScript frameworks for NavBar
  6. Hide content for smart phone display:none; visibility:hidden;
  7. Use Smaller background images for smare phone
  8. Typical breakpoints widths 480, 769, 1024;
    Note use browser resolution stats its 1024 and higher
  9. Desktop or mobile first
    I like desktop first, lots or real estate to work with, then add media queries for mobile
    Most books mobile first, then add special queries for 769 and 1024

Creating Media Queries in the Web Page <head> block

Creating Media Queries iside a style sheets

Desktop First Strategy

Mobile First Strategy

Best Practice Where Does Design Break and Smart Phone HDPI

Fluid Grids

Responsive Images

Testing Responsive Designs

Videos and Flash