SlideShare a Scribd company logo
Responsive
               Web Design


               Jon Buda




Monday, September 27, 2010
Follow Along...


               http://jonbuda.com/refresh/responsive/




Monday, September 27, 2010
“
                             The control which designers know in the print
                             medium, and often desire in the web medium, is
                             simply a function of the limitation of the printed
                             page. We should embrace the fact that the web
                             doesn’t have the same constraints, and design for
                             this flexibility. But first, we must ‘accept the ebb and
                             flow of things.’



                             - John Allsopp via A Dao of Web Design




Monday, September 27, 2010
The Situation




Monday, September 27, 2010
The Situation
                               Desktop
                               Print
                               16:9
                               4:3
                               Mobile
                               Kindle
                               HD
                               iPad
                               Television
                               Projectors
                               Game Consoles
                               Automobiles




Monday, September 27, 2010
CSS 2.1


               all
               screen
               print
               projector
               handheld




Monday, September 27, 2010
CSS 2.1


               all
               screen
               print
               projector
               handheld




Monday, September 27, 2010
CSS 2.1


               all
               screen
               print
               projector
               handheld



               <link rel="stylesheet" href="screen.css" media="screen">
               <link rel="stylesheet" href="print.css" media="print">




Monday, September 27, 2010
CSS 2.1


               all
               screen
               print
               projector
               handheld



               <link rel="stylesheet" href="screen.css" media="screen">
               <link rel="stylesheet" href="print.css" media="print">

               @media screen { ... }
               @media print { ... }




Monday, September 27, 2010
CSS3 - Media Features


               width
               height
               device-width
               device-height
               orientation
               aspect-ratio
               device-aspect-ratio
               color
               color-index
               monochrome
               resolution
               scan
               grid




Monday, September 27, 2010
CSS3 - Media Features


                width
               height
               device-width
               device-height
                orientation
               aspect-ratio
               device-aspect-ratio
               color
               color-index
               monochrome
                resolution
               scan
               grid




Monday, September 27, 2010
Syntax


               @media screen and (min-width: 400px) { … }

               @media all and (orientation:landscape) { … }

               @media screen and (device-aspect-ratio: 16/9) { … }

               @media screen and (color), projection and (color) { … }

               @media print and (min-resolution: 300dpi) { … }




Monday, September 27, 2010
Example #1


               Starting with a fluid layout.

               Percentage-based widths.




Monday, September 27, 2010
Example #2


               Apply some extra scaling for wide viewports


               @media (max-width: 800px) {...}

               @media (min-width: 1300px) {...}

               @media (min-width: 1600px) {...}




Monday, September 27, 2010
Example #3


               Targeting mobile and small viewports


               @media (max-width: 480px) {...}

               @media (max-width: 480px) and (orientation: landscape) {...}

               @media (min-resolution: 300dpi) {...}




Monday, September 27, 2010
Monday, September 27, 2010
Browser Support


               Safari 3+
               Chrome
               Firefox 3.5+
               Opera 7+
               IE9

               Opera Mobile
               Mobile WebKit (iPhone, iPad, iPod Touch, newer Blackberries, Android)




Monday, September 27, 2010
But what about IE 6,7, and 8!?


               css3-mediaqueries.js

               http://code.google.com/p/css3-mediaqueries-js/


               JavaScript library to make IE 5+, Firefox 1+ and Safari 2 transparently parse, test
               and apply CSS3 Media Queries.




Monday, September 27, 2010
“
                             ‘Responsive Web Design’ is way
                             cool — but I rarely want to serve
                             the same content to devices with
                             different sized screens. It ignores
                             context.

                             - Jeff Croft via jeffcroft.com




Monday, September 27, 2010
“
                             ‘Responsive Web Design’ is way
                             cool — but I rarely want to serve
                             the same content to devices with
                             different sized screens. It ignores
                             context.

                             - Jeff Croft via jeffcroft.com




Monday, September 27, 2010
Questions?


               Jon Buda
               @jonbuda
               http://jonbuda.com



Monday, September 27, 2010
Resources


               • http://www.alistapart.com/articles/responsive-web-design/
               • http://jeffcroft.com/blog/2010/aug/06/responsive-web-design-and-mobile-context/
               • http://www.w3.org/TR/css3-mediaqueries
               • http://www.quirksmode.org/blog/archives/2010/08/combining_media.html
               • http://lessframework.com/




Monday, September 27, 2010

More Related Content

PDF
Barometrul antreprenoriatului romanesc 2012
PDF
#CannesLions 2014: Day 1 Recap #OgilvyCannes
PPT
DOC
lyleresume2015-2
PPTX
Semantic Web Intro - St. Patrick's Day 2016 Update
DOC
Programa semana da leitura 2011
PDF
Introduction to Swift
Barometrul antreprenoriatului romanesc 2012
#CannesLions 2014: Day 1 Recap #OgilvyCannes
lyleresume2015-2
Semantic Web Intro - St. Patrick's Day 2016 Update
Programa semana da leitura 2011
Introduction to Swift

Similar to Responsive Design for the Web (20)

PDF
CSS3 Media Queries: Mobile Elixir or CSS Snake Oil
PDF
Responsive Web Design
KEY
Responsive Web Design
KEY
Stocktwits & Responsive Web Design, social network meets flexible framework
PDF
(WI2012) Lucijan Blagonic - Responsive web design
PDF
Смартфоны и планшетники - mobile-friendly веб-разработка помимо десктопа - RI...
PDF
Handys und Tablets - Webentwicklung jenseits des Desktops - MobileTech Confer...
PDF
смартфоны и планшетники. веб разработка помимо десктопа. Patrick h. lauke. зал 1
PDF
Responsive Web Design
PPTX
Responsive Web Design Overview 2013
PDF
Devon 2011-f-1 반응형 웹 디자인
PDF
Beyond Responsive Web Design
PDF
Responsive Web Design
PDF
Designing for the mobile web
PDF
05 Mobile CSS
PPTX
Using Responsive Web Design To Make Your Web Work Everywhere
PDF
Bruce lawson-over-the-air
PDF
UXcellence: The Importance Of Human-Centered Design
PDF
UX Joburg: Mobile UX Workshop
PDF
Mobile, Media & Touch
CSS3 Media Queries: Mobile Elixir or CSS Snake Oil
Responsive Web Design
Responsive Web Design
Stocktwits & Responsive Web Design, social network meets flexible framework
(WI2012) Lucijan Blagonic - Responsive web design
Смартфоны и планшетники - mobile-friendly веб-разработка помимо десктопа - RI...
Handys und Tablets - Webentwicklung jenseits des Desktops - MobileTech Confer...
смартфоны и планшетники. веб разработка помимо десктопа. Patrick h. lauke. зал 1
Responsive Web Design
Responsive Web Design Overview 2013
Devon 2011-f-1 반응형 웹 디자인
Beyond Responsive Web Design
Responsive Web Design
Designing for the mobile web
05 Mobile CSS
Using Responsive Web Design To Make Your Web Work Everywhere
Bruce lawson-over-the-air
UXcellence: The Importance Of Human-Centered Design
UX Joburg: Mobile UX Workshop
Mobile, Media & Touch
Ad

Responsive Design for the Web

  • 1. Responsive Web Design Jon Buda Monday, September 27, 2010
  • 2. Follow Along... http://jonbuda.com/refresh/responsive/ Monday, September 27, 2010
  • 3. The control which designers know in the print medium, and often desire in the web medium, is simply a function of the limitation of the printed page. We should embrace the fact that the web doesn’t have the same constraints, and design for this flexibility. But first, we must ‘accept the ebb and flow of things.’ - John Allsopp via A Dao of Web Design Monday, September 27, 2010
  • 5. The Situation Desktop Print 16:9 4:3 Mobile Kindle HD iPad Television Projectors Game Consoles Automobiles Monday, September 27, 2010
  • 6. CSS 2.1 all screen print projector handheld Monday, September 27, 2010
  • 7. CSS 2.1 all screen print projector handheld Monday, September 27, 2010
  • 8. CSS 2.1 all screen print projector handheld <link rel="stylesheet" href="screen.css" media="screen"> <link rel="stylesheet" href="print.css" media="print"> Monday, September 27, 2010
  • 9. CSS 2.1 all screen print projector handheld <link rel="stylesheet" href="screen.css" media="screen"> <link rel="stylesheet" href="print.css" media="print"> @media screen { ... } @media print { ... } Monday, September 27, 2010
  • 10. CSS3 - Media Features width height device-width device-height orientation aspect-ratio device-aspect-ratio color color-index monochrome resolution scan grid Monday, September 27, 2010
  • 11. CSS3 - Media Features width height device-width device-height orientation aspect-ratio device-aspect-ratio color color-index monochrome resolution scan grid Monday, September 27, 2010
  • 12. Syntax @media screen and (min-width: 400px) { … } @media all and (orientation:landscape) { … } @media screen and (device-aspect-ratio: 16/9) { … } @media screen and (color), projection and (color) { … } @media print and (min-resolution: 300dpi) { … } Monday, September 27, 2010
  • 13. Example #1 Starting with a fluid layout. Percentage-based widths. Monday, September 27, 2010
  • 14. Example #2 Apply some extra scaling for wide viewports @media (max-width: 800px) {...} @media (min-width: 1300px) {...} @media (min-width: 1600px) {...} Monday, September 27, 2010
  • 15. Example #3 Targeting mobile and small viewports @media (max-width: 480px) {...} @media (max-width: 480px) and (orientation: landscape) {...} @media (min-resolution: 300dpi) {...} Monday, September 27, 2010
  • 17. Browser Support Safari 3+ Chrome Firefox 3.5+ Opera 7+ IE9 Opera Mobile Mobile WebKit (iPhone, iPad, iPod Touch, newer Blackberries, Android) Monday, September 27, 2010
  • 18. But what about IE 6,7, and 8!? css3-mediaqueries.js http://code.google.com/p/css3-mediaqueries-js/ JavaScript library to make IE 5+, Firefox 1+ and Safari 2 transparently parse, test and apply CSS3 Media Queries. Monday, September 27, 2010
  • 19. ‘Responsive Web Design’ is way cool — but I rarely want to serve the same content to devices with different sized screens. It ignores context. - Jeff Croft via jeffcroft.com Monday, September 27, 2010
  • 20. ‘Responsive Web Design’ is way cool — but I rarely want to serve the same content to devices with different sized screens. It ignores context. - Jeff Croft via jeffcroft.com Monday, September 27, 2010
  • 21. Questions? Jon Buda @jonbuda http://jonbuda.com Monday, September 27, 2010
  • 22. Resources • http://www.alistapart.com/articles/responsive-web-design/ • http://jeffcroft.com/blog/2010/aug/06/responsive-web-design-and-mobile-context/ • http://www.w3.org/TR/css3-mediaqueries • http://www.quirksmode.org/blog/archives/2010/08/combining_media.html • http://lessframework.com/ Monday, September 27, 2010