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

Responsive Web Design and Embracing the Unknown

A4880e660c1eee25b37f1898eee67b3c?s=47 Aaron Weyenberg
November 09, 2011

Responsive Web Design and Embracing the Unknown

Design for the web is undergoing a dizzying disruption driven by the growing landscape of client devices. Responsive design, as a “response” to this disorder, began as a technique. It’s now maturing into a philosophy. In this session, Aaron will take you through the conditions that gave rise to RWD and the core mechanics of the responsive design approach. We’ll take an honest look at the headwinds that RWD is facing, and some emerging techniques and practices to counter those challenges.

A4880e660c1eee25b37f1898eee67b3c?s=128

Aaron Weyenberg

November 09, 2011
Tweet

Transcript

  1. Responsive Web Design Aaron Weyenberg @aweyenberg (And embracing the unknown)

    Wednesday, November 9, 11
  2. Wednesday, November 9, 11

  3. Wednesday, November 9, 11

  4. Wednesday, November 9, 11

  5. Wednesday, November 9, 11

  6. Wednesday, November 9, 11

  7. Now if you’re viewing the site on a telephone, you

    will never in a trillion years experience the site. You’ll think you have experienced it. But you’ll be cheated. It’s such a sadness that you think you’ve viewed a site on your... fffucking telephone. Get real. Wednesday, November 9, 11
  8. Photo: Robert Scoble How great is this, really? Wednesday, November

    9, 11
  9. 2000’s Image: Movie Title Stills Collection Wednesday, November 9, 11

  10. Image: Movie Title Stills Collection Wednesday, November 9, 11

  11. 2007 The Great Disruption iPhone 2008 Android 2010 WP 7

    iPad Wednesday, November 9, 11
  12. Motorola Xoom Samsung Galaxy Tab The Great Disruption Sony Tablet

    S 2011 2010 Wednesday, November 9, 11
  13. 2011 (Cont...) The Great Disruption HP TouchPad (RIP) Blackberry Playbook

    Toshiba Thrive Wednesday, November 9, 11
  14. 2011 (Cont...) The Great Disruption Amazon Kindle Fire ? ?

    2012 Wednesday, November 9, 11
  15. Wednesday, November 9, 11

  16. Photo: blmiers2 Mobile Tablets Netbooks Laptops Desktops Wednesday, November 9,

    11
  17. Wednesday, November 9, 11

  18. We should ... design for this flexibility. But first, we

    must ‘accept the ebb and flow of things’.” “ Wednesday, November 9, 11
  19. Using percentages to specify page layout in CSS automatically creates

    adaptive pages.” “ Wednesday, November 9, 11
  20. @media print { ... } <link rel=“stylesheet” href= “print.css” media=“print”>

    CSS2: Media Types External link Embedded Wednesday, November 9, 11
  21. @media only screen and (min-width:500px) { ... } <link rel=“stylesheet”

    href= “default.css” media=“only screen and (min-width:500px)”> CSS3: Media Conditions External link Embedded Wednesday, November 9, 11
  22. Wednesday, November 9, 11

  23. m.radwebsite.com Wednesday, November 9, 11

  24. 1 URL, n destinations Wednesday, November 9, 11

  25. ...there is only The Web, which we view in different

    ways. There is also no Desktop Web. Or Tablet Web. Thank you.” Stephen Hay via Twitter “There is no mobile web... Wednesday, November 9, 11
  26. Launched Sept 12, 2011 bostonglobe.com Wednesday, November 9, 11

  27. From now on... Wednesday, November 9, 11

  28. The RWD Stack Adaptive layouts & grids Flexible images &

    content CSS3 Media Queries Wednesday, November 9, 11
  29. Adaptive layouts .column1 { float: left; width: 75%; } .column2

    { float: left; width: 25%; } Wednesday, November 9, 11
  30. Adaptable layouts .column1 { float: left; width: 75%; } .column2

    { float: left; width: 25%; } Wednesday, November 9, 11
  31. Adaptable layouts .column1 { float: none; width: auto; } .column2

    { float: none; width: auto; } Wednesday, November 9, 11
  32. Flexible images & content img { max-width: 100%; } Wednesday,

    November 9, 11
  33. Flexible images & content img { max-width: 100%; } Wednesday,

    November 9, 11
  34. CSS3 Media Queries Wednesday, November 9, 11

  35. CSS3 Media Queries Desktop down Wednesday, November 9, 11

  36. CSS3 Media Queries Mobile up Wednesday, November 9, 11

  37. Desktop down MQ’s @media only screen and (max-width: 992px) {

    // up to 992px } // Resets // Global styles // Styles for all widths @media only screen and (max-width: 1382px) { // up to 1382px } Wednesday, November 9, 11
  38. @media only screen and (max-width: 600px) { // up to

    600px } @media only screen and (max-width: 768px) { // up to 768px } @media only screen and (max-width: 480px) { // up to 480px } Wednesday, November 9, 11
  39. Mobile up MQ’s @media only screen and (min-width: 600px) {

    // 600px and up } // Resets // Global styles // All styles for widths < 480px @media only screen and (min-width: 480px) { // 480px and up } No query IS your first query Wednesday, November 9, 11
  40. @media only screen and (min-width: 992px) { // 992px and

    up } @media only screen and (min-width: 768px) { // 768px and up } @media only screen and (min-width: 1382px) { // 1382px and up } Wednesday, November 9, 11
  41. Ranged MQ’s @media only screen and (min-width: 480px) and (max-width:

    600px) { // between 480px to 600px } for discrete styles 0 480px 600px 1382px Wednesday, November 9, 11
  42. Wednesday, November 9, 11

  43. RWD’s Challenges Images <img src=“brooklynbridge.jpg” ... Tables Ads Process Wednesday,

    November 9, 11
  44. RWD’s Challenges Images Tables Ads Process Wednesday, November 9, 11

  45. RWD’s Challenges Images Tables Ads Process Wednesday, November 9, 11

  46. RWD’s Challenges Images Tables Ads Process Wednesday, November 9, 11

  47. RWD’s Challenges Images Tables Ads Process Wednesday, November 9, 11

  48. RWD’s Challenges Images Tables Ads Process Wednesday, November 9, 11

  49. Responsive Images This is hard Wednesday, November 9, 11

  50. 6HUYHUVLGHUHVSRQVLYH LPDJHV KWWSVJLWKXE FRPFDUVRQPFGRQDOG6HUYHU6LGH5HVSRQVLYH,PDJH([DPSOHUHDGPH QD <HV 1R <HV :85)/-DYD QD

    QD /LNHO\WRKDYH SUREOHPVEHFDXVH GLIIHUHQWVL]HLPDJHV FRPHIURPWKHVDPH XUO QD *3/Y $VIDUDV,FDQWHOOWKLVLVD:85)/EDVHGDOWHUQDWLYHWR7LQ\65& ,WLVDVHUYLFHWKDW\RXFDQFDOOZLWKDQLPDJHXUOWKDWZLOOUHVL]HWKH LPDJHEDVHGRQZKDW:85)/NQRZVDERXWWKHVL]HRIWKHGHYLFH 9HU\QHZSURMHFW&DUVRQ0F'RQDOGVWDUWHGLWZKLOHDW%UHDNLQJ 'HYHORSPHQWFRQIHUHQFHLQ6HSWHPEHU \ \ 6HQFKDLR6UF KWWSZZZVHQFKD FRPSURGXFWVLR :RUNV <HV 1R <HV :HEVHUYLFH QD QD 1RLVVXHV QD )UHH 2ULJLQDOO\FDOOHG7LQ\65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RIRWKHUDVVHWV7KLVLVWKHWHFKQLTXHWKH\XVHGRQ EURZVHUQRNLDFRP%U\DQKDVVRPHHDUOLHUFRGHRQ*LW+XEEXW WKH\KDYHQ¶WUHOHDVHGDUHFHQWYHUVLRQ7KHPDLQUHDVRQIRU LQFOXGLQJWKLVLVWKDWOLNHWKH%RVWRQ*OREHLWLVSUREDEO\WKHEHVW WKRXJKWRXWH[DPSOHGHDOLQJZLWKDORWHGJHFDVHVDQGSRWHQWLDO SLWIDOOV 7HFKQLTXH 85/ )LUVW/RDG 0XOWLSOH 6L]HV ([WUD 'RZQORDGV +DQGOH ,PDJH 5HVL]LQJ" 7HFK 1R&RRNLHV 1R-6 &DFKLQJDQG&'1V 1R0HGLD4XHU\ 6XSSRUW /LFHQVH 1RWHV GDWD QRVFULSW FRRNLHV EDVH KWDFFHVV XUO SDUDPHWHUV DVVXPHG ILOHVWUXFWXUH LPDJH VHUYLFH VHU VLG Wednesday, November 9, 11
  51. <noscript data-smallsrc=“small.jpg” data- largesrc=“big.jpg” class=“r”> <img src=“small.jpg” </noscript> 1. Get

    screen size with Javascript 2. Loop through <noscript> tags 3. Write in appropriate <img> tags <img src=“big.jpg” alt=“The big image” /> Wednesday, November 9, 11
  52. <img src=“http://src.sencha.io/http:// mysite.com/image.jpg” alt=“Magically resized image” /> 1. Prefix image

    url with proxy service Sencha.io 2. Nothing. YOur’e done. Wednesday, November 9, 11
  53. Responsive Tables (Chris Coyier) Wednesday, November 9, 11

  54. Wednesday, November 9, 11

  55. ... <td data-label=“Jersey Number”>18</td> <td data-label=“Position”>Center</td> <td data-label=“Goals”>24</td> <td data-label=“Assists”>33</td>

    ... Data attributes match column headers Wednesday, November 9, 11
  56. table, thead, tbody, th, td, tr { display: block; }

    thead tr { position: absolute; left: -9999px; } Stack all table elements Hide the table headers Wednesday, November 9, 11
  57. td { position: relative; padding-left: 50%; } td:before { position:

    absolute; width: 50%; content: attr(data-label); } Make space for data-labels Position and insert data-labels Wednesday, November 9, 11
  58. 0-760px > 760px Wednesday, November 9, 11

  59. Ads and Responsive Design Don’t mix (yet) Wednesday, November 9,

    11
  60. Wednesday, November 9, 11

  61. Wednesday, November 9, 11

  62. <div class=“ad-slot-2”></div> <div class=“ad-slot-1”></div> Wednesday, November 9, 11

  63. <div class=“ad-slot-2”></div> <div class=“ad-slot-1”></div> display: none; $().appendTo() Wednesday, November 9,

    11
  64. Wednesday, November 9, 11

  65. Wednesday, November 9, 11

  66. display: none; Wednesday, November 9, 11

  67. Is there a future for responsive ads? Yep. If we

    create one. (...like an independently responsive ad API.) Wednesday, November 9, 11
  68. The Responsive Workflow Nimble and iterative Wednesday, November 9, 11

  69. What we’ve been doing Wednesday, November 9, 11

  70. What we’ll need to do Forget pixel precision Move to

    the browser early Rapid prototyping! Developers + Designers Wednesday, November 9, 11
  71. We’re our own best resource Photo: lightmanx5 Wednesday, November 9,

    11
  72. Three things... Wednesday, November 9, 11

  73. Structured content Wednesday, November 9, 11

  74. Mobile first Structured content Wednesday, November 9, 11

  75. Mobile first Progressive Enhancement Structured content Wednesday, November 9, 11

  76. Mobile first Progressive Enhancement Structured content RWD Wednesday, November 9,

    11
  77. Photo: Fausto Fernos Wednesday, November 9, 11

  78. Photo: NASA, ESA, M. Livo and the Hubble 20th Anniversary

    Team (STScl) Wednesday, November 9, 11
  79. Taking the RWD path means Being at peace with the

    unknown Wednesday, November 9, 11
  80. Thanks! Aaron Weyenberg @aweyenberg Wednesday, November 9, 11