Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Responsive Web Design

Russ Weakley
December 05, 2011

Responsive Web Design

Responsive web design is an important part of web development today. These slides from a resent presentation explain what it is and how it can be achieved.

Russ Weakley

December 05, 2011
Tweet

Other Decks in Technology

Transcript

  1. In Australia, 2008 there were 1.27 billion landline subscribers and

    4.1 billion mobile phone subscribers Mobile Landline
  2. You can create a single site that adapts to suit

    any device regardless of screen size or orientation
  3. Even in these cases, a responsive design should still be

    the default option. Device-specific solutions can be added on top.
  4. Flexible images and media (videos etc) This allows your images

    and videos to reflow with the layout 2
  5. CSS3 Media queries This allows you to control each layout

    so that content is displayed optimally 3
  6. Conditional comments Showing different styles to older Internet Explorer <link

    rel="stylesheet" href="global.css" media="all"> <link rel="stylesheet" href="desktop.css" media="all and (min-width: 700px)"> <!--[if (lt IE 9)&(!IEMobile 7)]> <link rel="stylesheet" href="desktop.css" media="all"> <![endif]-->
  7. Creating fluid images is easy. You can just set a

    width or max-width for all images. img { max-width: 100%; }
  8. One concern with the “mobile first” approach is that large

    images may be served to mobile devices.
  9. Luckily, there are a range of solutions now available that

    let you serve small images as a default, and then larger images where needed.