Skip to main content
Responsive Design
LVL Studio UX Soirée at Station C
November 21, 2012 in Montreal, Quebec




                      Clarissa Peterson
                              @clarissa
A Little History
Fixed-width Site
Separate Mobile Site
One Website
Before
After
Photo credit: Brad Frost via Creative Commons http://flic.kr/p/cfQwL7
Responsive Web Design
Responsive Web Design http://www.abookapart.com/products/responsive-web-design/
Responsive web design offers us a way
forward, finally allowing us to “design for
the ebb and flow of things.”


                         - Ethan Marcotte
How It Works
1. Flexible Grid
2. Flexible Images/Media
   3. Media Queries
1. Flexible Grid
2. Flexible Images/Media
   3. Media Queries
#content {
! width: 90%;
}
img {
! max-width: 100%;
}
1. Flexible Grid
2. Flexible Images/Media
   3. Media Queries
http://www.unitedpixelworkers.com/
http://www.unitedpixelworkers.com/
http://www.unitedpixelworkers.com/
http://www.unitedpixelworkers.com/
http://www.unitedpixelworkers.com/
http://www.unitedpixelworkers.com/
@media screen and (min-width: 640px) {
  .section1, .section2 {
    float: left;
    width: 50%;
  }
}
@media screen and (min-width: 640px) {
  .section1, .section2 {
    float: left;
    width: 50%;
  }
}
@media screen and (min-width: 40em) {
  .section1, .section2 {
    float: left;
    width: 50%;
  }
}
Why?
Mobile
45%
         of American adults
own a smartphone

http://pewinternet.org/Reports/2012/Smartphone-Update-Sept-2012.aspx
40%
  have a cell phone that’s
not a smartphone

http://pewinternet.org/Reports/2012/Smartphone-Update-Sept-2012.aspx
17%
do most of their online browsing
     on their phone

  http://pewinternet.org/Reports/2012/Smartphone-Update-Sept-2012.aspx
Content Parity
www.consumerreports.org/
The beauty of the web is its openness.
Don’t arbitrarily lock people out because
of browser, device or configuration.
                             - Brad Frost
                             @brad_frost
http://www.geico.com/
Access
http://www.unheap.com/
Future-Friendly
Illustration credit: Anna Debenham via Creative Commons http://flic.kr/p/dtMQTL
Photo Credit: Rafel Miro via Creative Commons http://flic.kr/p/8KSGt7
Sony PSP-1000, Photo credit: Anna Debenham via Creative Commons http://flic.kr/p/dpGnUj
Nokia 95-3, Photo credit: Jonathan Greene via Creative Commons http://flic.kr/p/4nGFUd
Responsive Design
Context of Use
Photo credit: Mith Huang via Creative Commons http://flic.kr/p/9B7A4c
Photo credit: Kai Chan Vong via Creative Commons http://flic.kr/p/5c4Sfv
Photo credit: Carlos Smith via Creative Commons http://flic.kr/p/8tLb4P
Photo credit: Pete Markham via Creative Commons http://flic.kr/p/2zvrrJ
Assumptions
Photo credit: Wendi Dunlap via Creative Commons http://flic.kr/p/vMJM6
Photo credit: Channy Yun via Creative Commons http://flic.kr/p/51QJr6
Photo credit: Matt Hamm via Creative Commons http://flic.kr/p/EyrLG
Mobile First
Mobile use case: I just transferred money
at my desk using my phone because
logging into my banking app requires
fewer steps.
                       - Stephanie Rieger
                        @stephanierieger
Make it work better for everybody.
Touchscreen
Touch
Hover
Swipe
Navigation
Top Navigation
http://www.gravitatedesign.com
http://www.gravitatedesign.com
http://www.tuj.ac.jp/
http://www.tuj.ac.jp/
Footer Navigation
http://contentsmagazine.com/
http://contentsmagazine.com/
<div id="site-nav">
    <form> ... </form>
! <nav>
! ! <ul class="nav nav-primary">
! ! ! <li><a href="#">Archive</a></li>
! ! ! <li><a href="#">About</a></li>
! ! ! <li><a href="#">Write For Us</a></li>
! ! ! <li><a href="#">Subscribe</a></li>! ! !
! ! </ul>
! </nav>
</div>
@media screen and (min-width: 48em) {
! #site-nav {
! ! position: absolute;
! ! top: -5em;
! ! width: 100%;
! ! z-index: 5;
! }
}