SlideShare a Scribd company logo
Elements of
Responsive
Web Design
“So, I’ve been hearing about
  Responsive Web Design.
    What is it, exactly?”
“We can embrace the flexibility inherent to the web,
without surrendering the control we require as designers.
All by embedding standards-based technologies in our
work, and by making a slight change in our philosophy
toward online design.”



                                        – Ethan Marcotte,
                                              Responsive Web Design
We can use the fluidity of HTML, CSS and
Javascript to create designs that provide optimal
 experiences by responding to device context.
“Ok, but why should I care about
  Responsive Web Design?”
For years, we designed for this…
…and then this happened.
Responsive Web Design gives us the tools to handle
the ever-increasing number of devices in the wild in
             a future-friendly* fashion.




                      http://futurefriend.ly/
“Well, how do I implement a responsive site?”
Elements of Responsive Design




 1
 Fg
                  2
                  Fi
                                  3
                                  Mq
Fluid Grids   Flexible Images   Media Queries
Here’s some basic, responsive boilerplate



<!DOCTYPE html>
<html>
<head>
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
     …
</body>
</html>
Let’s add a simple grid
<!DOCTYPE html>
<html>
<head>
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <link rel="stylesheet" href="grid.css">
</head>
<body>
     <div class="grid">
        <div class="col-2-3">
          …
        </div>
        <div class="col-1-3">
          …
        </div>
     </div>
</body>
</html>




                 Hat tip to @chriscoyier and http://css-tricks.com/dont-overthink-it-grids/
And now some styles to make the grid work




 *:before {    -webkit-box-sizing: border-box;    -moz-box-sizing: border-box;                         box-sizing:
ding: 1em 0 1em 1em }
 {    content: "";    display: table;    clear: both;}

l-'] {    float: left;    padding-right: 1em;}
width: 66.66% }
width: 33.33% }




                          Hat tip to @chriscoyier and http://css-tricks.com/dont-overthink-it-grids/
Fluid grids scale to the device…




…but our layout doesn’t quite work.
Let’s use a media query to refine the layout.




after, *:before {    -webkit-box-sizing: border-box;    -moz-box-sizing: border-box;                    box-si
 { padding: 1em 0 1em 1em }
:after {    content: "";    display: table;    clear: both;}

s*='col-'] {    float: left;        padding-right: 1em;}

a screen and (min-device-width: 480px ) {
col-2-3 { width: 66.66% }
col-1-3 { width: 33.33% }




                           Hat tip to @chriscoyier and http://css-tricks.com/dont-overthink-it-grids/
And now the layout responds accordingly.




 Single column below 480px   Two columns about @ 480px and above
Now, let’s make our images flex.



*:before {    -webkit-box-sizing: border-box;    -moz-box-sizing: border-box;   box-sizing: b
ing: 1em 0 1em 1em }
{    content: "";    display: table;    clear: both;}

-'] {    float: left;    padding-right: 1em;}

dth: 100% } // yep, that’s it

n and (min-device-width: 480px ) {
 { width: 66.66% }
 { width: 33.33% }
And now our images can flex with the layout.




  Single column below 480px   Two columns about @ 480px and above
Of course, this requires scaling a single, larger
                       image.

There’s a lot of work going on to find better solutions
 for flexible images, such as the <picture> element.
There’s a lot more to it, but that covers the basics* of
              Responsive Web Design.




               *Your mileage may vary. Support for IE quirks will require more work!
Buzz phrases to consider when thinking
            responsively
Mobile First
Design for the constraints of mobile devices first and craft your
design to respond as capabilities increase.


Content Out
Design responsive sites around content needs.


Progressive Enhancement
Start with a simple core and add features when capabilities appear
on various devices.


Speed Wins
Design for the fastest display you can; eject everything you don’t
need.
“...the purpose behind “responsive design”—the concept
of what it strives to achieve—should be separated from
the specific techniques used to achieve it. As the
worldwide community embraces [Ethan’s] idea (and as
new methods of CSS layout become practical), the
techniques of responsive design will continue to improve
and, dare I say it, adapt.”



                                                                       Jeffrey Zeldman,
            Responsive Design. I don’t think that word means what you think it means.http://bit.ly/oP8eei
The original concept is fine, but it only addresses
 some needs. We need to broaden our notion of
                  ‘responsive’.
Other approaches to being responsive

Adaptive Web Design
http://www.lullabot.com/articles/responsive-adaptive-web-design


RESS: Responsive Design + Server Side
Components
http://www.lukew.com/ff/entry.asp?1392
Some Responsive Design Tools
    Adobe Shadow
    labs.adobe.com/technologies/shadow/


    Aptus
    In the Mac App Store


    Firefox 15
    getfirefox.com


    Gridset
    gridsetapp.com


    ZURB Foundation
    foundation.zurb.com
“Ok, I get it!
  So all of my sites should be
responsive from now on, right?”
YES
Ok, maybe not “always”.

Ask your doctor if an alternative approach
          may be right for you.
Thanks!
 Questions?
George White
Principal Consultant, Mobile Practice Lead
george@cantina.co
@stonehippo

More Related Content

PDF
Keys to Responsive Design
PDF
Seven Steps To Better JavaScript
PDF
Strategy for a Responsive UX
PDF
Css background image
PDF
Deepika Mittal , BCA Third Year
PPTX
Graphic Design For Web
PPT
Aucd ppt
PPTX
Mozilla Webmaker
Keys to Responsive Design
Seven Steps To Better JavaScript
Strategy for a Responsive UX
Css background image
Deepika Mittal , BCA Third Year
Graphic Design For Web
Aucd ppt
Mozilla Webmaker

What's hot (14)

PDF
Essential On-Page SEO
PDF
Adaptive profiles t3 con13 sf
PPTX
Web development processes
PPTX
Geekspeak: Javascript
PDF
Measuring Web Performance - HighEdWeb Edition
TXT
The art of website layout
PDF
Fully Optimized
PPTX
WordPress Outsourced
PDF
Ego vs. Product Development
PDF
PAC 2019 virtual Joerek Van Gaalen
PDF
Gutenberg | How a WordPress studio adapted
ODP
Web performance101
PDF
Stupendous Hints About Wordpress The Experts Will Explain
PDF
[wcatx] jQuery for WordPress Theme Designers
Essential On-Page SEO
Adaptive profiles t3 con13 sf
Web development processes
Geekspeak: Javascript
Measuring Web Performance - HighEdWeb Edition
The art of website layout
Fully Optimized
WordPress Outsourced
Ego vs. Product Development
PAC 2019 virtual Joerek Van Gaalen
Gutenberg | How a WordPress studio adapted
Web performance101
Stupendous Hints About Wordpress The Experts Will Explain
[wcatx] jQuery for WordPress Theme Designers
Ad

Viewers also liked (7)

PDF
Choices for Responsive Redesign: Ground-up or Responsive Retrofit
PDF
Intro to facade
PDF
Domain-Driven Design: Part 4 from Delivering the Connected Experience
PDF
Choices for Responsive Redesign: Ground-up or Responsive Retrofit
PDF
Bootstrap 3 Talk - What is Bootstrap 3 | 聊聊 Bootstrap 3 - 初識什麼是 Bootstrap 3
PPTX
Module 3 - Intro to Bootstrap
PDF
Designing the Connected Experience: Part 3 from Delivering the Connected Expe...
Choices for Responsive Redesign: Ground-up or Responsive Retrofit
Intro to facade
Domain-Driven Design: Part 4 from Delivering the Connected Experience
Choices for Responsive Redesign: Ground-up or Responsive Retrofit
Bootstrap 3 Talk - What is Bootstrap 3 | 聊聊 Bootstrap 3 - 初識什麼是 Bootstrap 3
Module 3 - Intro to Bootstrap
Designing the Connected Experience: Part 3 from Delivering the Connected Expe...
Ad

Similar to Mobile Monday Presentation: Responsive Web Design (20)

PDF
Aaug sample slides
PDF
Adapting to a Responsive Design at Untangle the Web on 29th July 2013
PDF
Is everything we used to do wrong?
PPTX
Bootstrap for Beginners
PDF
What’s Up, EDoc?!
PDF
Responsive Web Design: Clever Tips and Techniques
PDF
Web Development for UX Designers
PPTX
Responsive Web Design - Web & PHP Conference - 2013-09-18
PDF
Responsive Websites
DOCX
“Good design is obvious. Great design is transparent.” — How we use Bootstrap...
PDF
PDF
Responsive Web Design, get the best out of your designs - JavaScript Open Day...
PPTX
Stc 2015 preparing legacy projects for responsive design - technical issues
KEY
The future of BYU web design
PDF
Responsive Content: A CSS-based Approach - MadWorld 2015, Scott DeLoach, Clic...
PDF
Business of Front-end Web Development
PDF
Html 5 mobile - nitty gritty
PPTX
Create Responsive Website Design with Bootstrap 3
PDF
Bootstrap 3.0
PDF
Responsive webdesign WordCampNL 2012
Aaug sample slides
Adapting to a Responsive Design at Untangle the Web on 29th July 2013
Is everything we used to do wrong?
Bootstrap for Beginners
What’s Up, EDoc?!
Responsive Web Design: Clever Tips and Techniques
Web Development for UX Designers
Responsive Web Design - Web & PHP Conference - 2013-09-18
Responsive Websites
“Good design is obvious. Great design is transparent.” — How we use Bootstrap...
Responsive Web Design, get the best out of your designs - JavaScript Open Day...
Stc 2015 preparing legacy projects for responsive design - technical issues
The future of BYU web design
Responsive Content: A CSS-based Approach - MadWorld 2015, Scott DeLoach, Clic...
Business of Front-end Web Development
Html 5 mobile - nitty gritty
Create Responsive Website Design with Bootstrap 3
Bootstrap 3.0
Responsive webdesign WordCampNL 2012

More from Cantina (12)

PDF
Sketching for UX Designers
PPTX
Demystifying the Design Process
PDF
Software is not a Building - Designing Technical Architecture for Change
PDF
Planning For design
PDF
Five Key Ingredients in Successful Mobile Projects
PDF
Delivering Responsive Design at Scale
PDF
Design i/o - Creating Visual Interfaces for Digital Systems
PDF
Introduction to Reactive
PDF
Utilizing Lean Practices in the Enterprise: Part 1 of Delivering the Connecte...
PDF
Demystifying Content Strategy: Part 2 of Delivering the Connected Experience
PDF
The Need For Speed: Part 5 of Delivering the Connected Experience
PDF
A Brief History of Input Devices with Cantina's Daniel Bostwick
Sketching for UX Designers
Demystifying the Design Process
Software is not a Building - Designing Technical Architecture for Change
Planning For design
Five Key Ingredients in Successful Mobile Projects
Delivering Responsive Design at Scale
Design i/o - Creating Visual Interfaces for Digital Systems
Introduction to Reactive
Utilizing Lean Practices in the Enterprise: Part 1 of Delivering the Connecte...
Demystifying Content Strategy: Part 2 of Delivering the Connected Experience
The Need For Speed: Part 5 of Delivering the Connected Experience
A Brief History of Input Devices with Cantina's Daniel Bostwick

Recently uploaded (20)

PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Electronic commerce courselecture one. Pdf
PDF
KodekX | Application Modernization Development
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPT
Teaching material agriculture food technology
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
A Presentation on Artificial Intelligence
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Electronic commerce courselecture one. Pdf
KodekX | Application Modernization Development
Unlocking AI with Model Context Protocol (MCP)
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Teaching material agriculture food technology
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
NewMind AI Monthly Chronicles - July 2025
Dropbox Q2 2025 Financial Results & Investor Presentation
“AI and Expert System Decision Support & Business Intelligence Systems”
Understanding_Digital_Forensics_Presentation.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Building Integrated photovoltaic BIPV_UPV.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
A Presentation on Artificial Intelligence

Mobile Monday Presentation: Responsive Web Design

  • 2. “So, I’ve been hearing about Responsive Web Design. What is it, exactly?”
  • 3. “We can embrace the flexibility inherent to the web, without surrendering the control we require as designers. All by embedding standards-based technologies in our work, and by making a slight change in our philosophy toward online design.” – Ethan Marcotte, Responsive Web Design
  • 4. We can use the fluidity of HTML, CSS and Javascript to create designs that provide optimal experiences by responding to device context.
  • 5. “Ok, but why should I care about Responsive Web Design?”
  • 6. For years, we designed for this…
  • 7. …and then this happened.
  • 8. Responsive Web Design gives us the tools to handle the ever-increasing number of devices in the wild in a future-friendly* fashion. http://futurefriend.ly/
  • 9. “Well, how do I implement a responsive site?”
  • 10. Elements of Responsive Design 1 Fg 2 Fi 3 Mq Fluid Grids Flexible Images Media Queries
  • 11. Here’s some basic, responsive boilerplate <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> … </body> </html>
  • 12. Let’s add a simple grid <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="grid.css"> </head> <body> <div class="grid"> <div class="col-2-3"> … </div> <div class="col-1-3"> … </div> </div> </body> </html> Hat tip to @chriscoyier and http://css-tricks.com/dont-overthink-it-grids/
  • 13. And now some styles to make the grid work *:before { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: ding: 1em 0 1em 1em } { content: ""; display: table; clear: both;} l-'] { float: left; padding-right: 1em;} width: 66.66% } width: 33.33% } Hat tip to @chriscoyier and http://css-tricks.com/dont-overthink-it-grids/
  • 14. Fluid grids scale to the device… …but our layout doesn’t quite work.
  • 15. Let’s use a media query to refine the layout. after, *:before { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-si { padding: 1em 0 1em 1em } :after { content: ""; display: table; clear: both;} s*='col-'] { float: left; padding-right: 1em;} a screen and (min-device-width: 480px ) { col-2-3 { width: 66.66% } col-1-3 { width: 33.33% } Hat tip to @chriscoyier and http://css-tricks.com/dont-overthink-it-grids/
  • 16. And now the layout responds accordingly. Single column below 480px Two columns about @ 480px and above
  • 17. Now, let’s make our images flex. *:before { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: b ing: 1em 0 1em 1em } { content: ""; display: table; clear: both;} -'] { float: left; padding-right: 1em;} dth: 100% } // yep, that’s it n and (min-device-width: 480px ) { { width: 66.66% } { width: 33.33% }
  • 18. And now our images can flex with the layout. Single column below 480px Two columns about @ 480px and above
  • 19. Of course, this requires scaling a single, larger image. There’s a lot of work going on to find better solutions for flexible images, such as the <picture> element.
  • 20. There’s a lot more to it, but that covers the basics* of Responsive Web Design. *Your mileage may vary. Support for IE quirks will require more work!
  • 21. Buzz phrases to consider when thinking responsively Mobile First Design for the constraints of mobile devices first and craft your design to respond as capabilities increase. Content Out Design responsive sites around content needs. Progressive Enhancement Start with a simple core and add features when capabilities appear on various devices. Speed Wins Design for the fastest display you can; eject everything you don’t need.
  • 22. “...the purpose behind “responsive design”—the concept of what it strives to achieve—should be separated from the specific techniques used to achieve it. As the worldwide community embraces [Ethan’s] idea (and as new methods of CSS layout become practical), the techniques of responsive design will continue to improve and, dare I say it, adapt.” Jeffrey Zeldman, Responsive Design. I don’t think that word means what you think it means.http://bit.ly/oP8eei
  • 23. The original concept is fine, but it only addresses some needs. We need to broaden our notion of ‘responsive’.
  • 24. Other approaches to being responsive Adaptive Web Design http://www.lullabot.com/articles/responsive-adaptive-web-design RESS: Responsive Design + Server Side Components http://www.lukew.com/ff/entry.asp?1392
  • 25. Some Responsive Design Tools Adobe Shadow labs.adobe.com/technologies/shadow/ Aptus In the Mac App Store Firefox 15 getfirefox.com Gridset gridsetapp.com ZURB Foundation foundation.zurb.com
  • 26. “Ok, I get it! So all of my sites should be responsive from now on, right?”
  • 27. YES
  • 28. Ok, maybe not “always”. Ask your doctor if an alternative approach may be right for you.
  • 30. George White Principal Consultant, Mobile Practice Lead george@cantina.co @stonehippo