SlideShare a Scribd company logo
Responsive Web Design
About Me 
• Julia Vishnevsky 
• .Net developer at ‘Yedioth Aharonot’ 
Daka90.co.il team 
• Co-founder & CTO at ‘Gigpo’ 
• Keep in touch: 
– Facebook 
– Linked In
WHY RESPONSIVE?
Motivation 
The total number of people using the web on mobile devices 
is set to surpass desktops by 2015
• 77% of world's population has a mobile device 
• Different devices and browser have different 
capabilities in terms of feature support 
• People expect to be able to browse the web on 
their phones just as easily as they browse the 
web on a desktop computer
Different screen resolutions
Different screen resolutions
Different screen resolutions
POSSIBLE SOLUTIONS
Development Options 
• Graceful Degradation 
• Progressive Enhancement 
• Mobile Specific Version 
• Responsive Design
Graceful Degradation 
• First build for the latest and greatest 
• Create a site using the newest features 
• Focus on the majority before catering to those 
outside the mainstream 
• Add handlers for less capable devices 
• make sure older browsers don't choke on the 
code and display the content
Pros & Cons 
• Pros 
– Fault tolerance 
• Cons 
– The content is displayed, but the experience might 
be painful 
– Not a good experience for: 
• the older browser user 
• the mobile devices that use less capable browsers
Progressive Enhancement 
• Create a baseline experience first 
• Use layers to provide richer experience for 
more capable browsers 
• Pros 
– Everyone gets a good viewing experience 
• Cons 
– Development time 
– Design restrictions
Mobile Specific Version 
• Create a separate mobile site 
– Subset of functionality. 
• Pros: 
– You can fully tailor the browsing experience for mobile 
users. 
• Cons: 
– Mobile users won’t get the full experience. 
– Each new feature has to be developed twice, resulting in 
large maintenance costs. 
– Still need to make adjustments for different screen 
resolution
RESPONSIVE DESIGN
Responsive 
• The design responds to 
– Device capabilities 
– Device type 
– Screen size and resolution 
– Orientation
The Father of Responsive Design 
• Ethan Marcotte 
– Web designer, developer, speaker and author 
• Ethan Marcotte coined the term responsive 
web design (RWD) in a May 2010 article in A 
List Apart 
• http://alistapart.com/ 
• http://alistapart.com/article/responsive-web-design/
“Rather than tailoring disconnected designs to 
each of an ever-increasing number of web 
devices, we can treat them as facets of the same 
experience.” 
Ethan Marcotte
EXAMPLES
Responsive Web Design
Responsive Web Design
Responsive Web Design
Responsive Web Design
Responsive Web Design
Responsive Web Design
Responsive Web Design
Responsive Web Design
Links 
• http://www.bostonglobe.com 
• http://www.cacaotour.com/index.php/en/ho 
me 
• http://foodsense.is/
IMPLEMENTATION
How Responsive Design Works 
• It’s not a single piece of technology, but 
rather, a set of techniques and ideas that form 
a whole 
• 3 main components 
– Fully fluid web design - % 
– Css media queries 
– JS
FLUID DESIGN
In The Past.. 
• We used to build fixed width layouts, centered
That doesn’t work anymore..
Fluid Layouts 
Fluid/liquid layout – the components have 
percentage widths, and thus adjust to the user’s 
screen resolution
% = Target / Context
0.76 = 720/ 940
0.23 = 220/ 940
Fluid Grid Frameworks 
• Flexible way to create a responsive web site
Responsive Web Design
Responsive Web Design
Fluid Grid Frameworks 
• Pros 
– No math required – just count the number of 
columns you need 
– Scales to any width – uses percentage - 
Responsive 
– It’s easy
Grid Frameworks 
Less Framework 4 Bootstrap
FONTS
What About Fonts? 
• EMS 
– The “em” is a scalable unit that is used in web 
document media. 
– 1em is equal to the current font-size of the 
element in question 
– If you haven't set font size anywhere on the page, 
the browser default is 16px 
– By default 1em = 16px 
– If you set a font-size of 20px on your body, 
then 1em = 20px
EM = Target / Context 
• Default: 16px 
• Target: 8px 
• EM = 8/16 = 0.5em
Example
IMAGES
Flexible Images 
• Images width can also be defined in % 
• Setting the max-width to 100% also ensures 
that the image does not scale larger than its 
actual size
Downloaded vs. Displayed
High/low resolution
High/low resolution
Responsive Image Solutions 
• Possible solutions 
– Picturefill 
• A polyfill script for the proposed Html5 <picture> 
element 
– HiSRC 
• A plugin that enables you to create low-, medium- and 
high-resolution versions of an image, and the script will 
show the appropriate one based on Retina-readiness 
and network speed.
Picturefill Implementation
Css3
Media Queries 
• CSS3 module 
• A media query is an expressions, which 
resolves to either true or false 
• When a media query is true, the 
corresponding style rules are applied
Responsive Web Design
Media Types 
• @media screen 
• Recognized media types 
all, braille, embossed, handheld, print, 
projection, screen, speech, tty, tv.
• (min-|max-)width and (min-|max-)height 
These allow us to query the width and height 
of the viewport (i.e. the browser window) 
• Orientation: 
– Landscape 
– Portrait
Ipad - Portrait
Iphone - Landscape
BROWSER COMPATIBILITY
Browser Compatibility 
IE 9, 10 IE 6, 7, 8 
Opera 9.5+ Opera Mobile 
Safari 3+ Safari 2 
Firefox 3.5 Firefox 1, 2 
Chrome
Possible solution 
• Write css for desktop browsers – the way you 
always did 
• Use media queries to optimize for smaller 
mobile screens 
• Using this workflow, older IE’s will always 
show the desktop version
Problem 
• Not all of us browse the web using the latest 
mobile devices 
• There are lots of older, popular and less 
capable devices around that don’t support 
media queries 
• Using this workflow means these devices 
won’t show our mobile layout
MOBILE FIRST
Mobile First 
• start with a fluid mobile layout 
• use media queries to optimize for bigger 
screens 
• This way, all devices are served a mobile 
layout at first 
• Meaning even devices that don’t support 
media queries will display the mobile version 
of your website
• Most desktop browsers understand media 
queries so they’ll serve the desktop layout. 
• But what about older IE versions? 
– The layout will be broken but the content will still 
be readable.
Polyfills 
• You can use a polyfill 
– Which forces older IE versions to interpret media 
queries. 
• Polyfill 
– Downloadable code which provides facilities that 
are not built into a web browser. 
– It implements technology that a developer 
expects the browser to provide natively.
Polyfills
Browser Compatibility 
IE 9, 10 IE 6, 7, 8 
Opera 9.5+ Opera Mobile 
Safari 3+ Safari 2 
Firefox 3.5 Firefox 1, 2 
Chrome
JS
JS 
• Browser detection 
• Jquery: jQuery.browser – deprecated 
• Js : User Agent: navigator.userAgent
User Agent
META TAGS
Mobile problem 
• http://source.tutsplus.com/webdesign/tutoria 
ls/037_new-viewport/viewport/no-metatag. 
html
Now let’s see how that looks on 
mobile…
• iOS Safari assumes a webpage is 980px wide, 
zooming out in order to fit the whole lot 
within the available (iPhone 4) 320px. 
• The content is then much less readable, unless 
you zoom in.
Viewport 
<meta name="viewport" content=""> 
• For example, if your mobile design is 
purposely laid out at 320px you can specify 
the viewport width: 
<meta name="viewport" content="width=320">
• For flexible layouts it’s more practical to base 
your viewport width on the device in 
question, so to match your layout width to the 
device width you’d enter: 
<meta name="viewport" content="width=device-width">
• To be extra certain that your layout will be 
displayed as you intended it you can also set 
the zoom level. This, for example: 
<meta name="viewport" content="initial-scale=1"> 
• This will ensure that upon opening, your 
layout will be displayed properly at 1:1 scale. 
• No zooming will be applied. You could even go 
further and prevent any zooming by the user: 
<meta name="viewport" content="maximum-scale=1">
TESTING
Testing… 
• 2 main components: 
• Screen size 
• User Agent emulation 
• Chrome Plugins: 
– Mobile/RWD Tester – user agent + screen size 
• Chrome Emulator
BOOKS
Books 
Ben Frain Tim Kadlec
Responsive Web Design

More Related Content

PDF
Mobile web vs. native apps: It's not about technology, it's about psychology
KEY
Native Device vs. Mobile Web Applications
PDF
The Mobile Platform World
PDF
Web App vs Web Site
PPTX
Embracing the mobile frontier and reaching the digital natives
PDF
Go Mobile With WordPress (2012)
PPTX
Mobile websites
PDF
Cm i padwebdev_lunch_learn
Mobile web vs. native apps: It's not about technology, it's about psychology
Native Device vs. Mobile Web Applications
The Mobile Platform World
Web App vs Web Site
Embracing the mobile frontier and reaching the digital natives
Go Mobile With WordPress (2012)
Mobile websites
Cm i padwebdev_lunch_learn

What's hot (17)

KEY
mobile usability
PPTX
Jquery mobile
PDF
[Vietnam Mobile Day 2013] - tối ưu hóa cho mobile json, bộ nhớ và tương tác
PDF
Mobile Web High Performance
KEY
Responsive Design & Mobile First
PPTX
Multi Channel Publishing
PDF
Creating mobile apps without native code
PDF
ITFT_Micro browser
PDF
Progressive Web Apps are here!
KEY
Designing for mobile devices
KEY
Beyond the Desktop: Sites and Apps for Phones and Tablets
PDF
Scan ar
PDF
The Challenge of Touchscreen Clutter - v2 - 9.26.2012
PDF
Facebook Timeline for Pages
PPTX
J query mobile tech talk
PPTX
Information Architecture in Mobile
PPTX
Many Notes pitch for App Circus at BlackBerry 10 Jam 2012
mobile usability
Jquery mobile
[Vietnam Mobile Day 2013] - tối ưu hóa cho mobile json, bộ nhớ và tương tác
Mobile Web High Performance
Responsive Design & Mobile First
Multi Channel Publishing
Creating mobile apps without native code
ITFT_Micro browser
Progressive Web Apps are here!
Designing for mobile devices
Beyond the Desktop: Sites and Apps for Phones and Tablets
Scan ar
The Challenge of Touchscreen Clutter - v2 - 9.26.2012
Facebook Timeline for Pages
J query mobile tech talk
Information Architecture in Mobile
Many Notes pitch for App Circus at BlackBerry 10 Jam 2012
Ad

Similar to Responsive Web Design (20)

PPTX
Chapter 17: Responsive Web Design
PPTX
Advancio, Inc. Academy: Responsive Web Design
PDF
Responsive Websites
KEY
Building Responsive Websites and Apps with Drupal
PDF
Great Responsive-ability Web Design
PPTX
Using Responsive Web Design To Make Your Web Work Everywhere
PDF
Responsive Web Site Design
PPTX
Mobile Best Practices
PPTX
Responsive Web Designing for web development
PDF
Responsive Web Design - Why and How
PDF
(Practical) Beyond Responsive Web Design (WordCamp Miami 2011)
PDF
Responsive web - CC FE & UX
KEY
Optimizing content for the "mobile web"
PDF
Responsive websites. Toolbox
PDF
Responsive web design
PDF
Monkeytalk Fall 2012 - Responsive Web Design
PPT
S. Responsive Web Design
PPT
Responsive Web Design
PPTX
Responsive web design
PPTX
Using Responsive Web Design To Make Your Web Work Everywhere
Chapter 17: Responsive Web Design
Advancio, Inc. Academy: Responsive Web Design
Responsive Websites
Building Responsive Websites and Apps with Drupal
Great Responsive-ability Web Design
Using Responsive Web Design To Make Your Web Work Everywhere
Responsive Web Site Design
Mobile Best Practices
Responsive Web Designing for web development
Responsive Web Design - Why and How
(Practical) Beyond Responsive Web Design (WordCamp Miami 2011)
Responsive web - CC FE & UX
Optimizing content for the "mobile web"
Responsive websites. Toolbox
Responsive web design
Monkeytalk Fall 2012 - Responsive Web Design
S. Responsive Web Design
Responsive Web Design
Responsive web design
Using Responsive Web Design To Make Your Web Work Everywhere
Ad

Recently uploaded (20)

PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PPTX
ISO 45001 Occupational Health and Safety Management System
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
medical staffing services at VALiNTRY
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PPTX
Introduction to Artificial Intelligence
PDF
AI in Product Development-omnex systems
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PPTX
Transform Your Business with a Software ERP System
Navsoft: AI-Powered Business Solutions & Custom Software Development
Wondershare Filmora 15 Crack With Activation Key [2025
Design an Analysis of Algorithms II-SECS-1021-03
CHAPTER 2 - PM Management and IT Context
2025 Textile ERP Trends: SAP, Odoo & Oracle
How Creative Agencies Leverage Project Management Software.pdf
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Which alternative to Crystal Reports is best for small or large businesses.pdf
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
ISO 45001 Occupational Health and Safety Management System
How to Migrate SBCGlobal Email to Yahoo Easily
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
medical staffing services at VALiNTRY
VVF-Customer-Presentation2025-Ver1.9.pptx
Introduction to Artificial Intelligence
AI in Product Development-omnex systems
How to Choose the Right IT Partner for Your Business in Malaysia
Design an Analysis of Algorithms I-SECS-1021-03
Odoo Companies in India – Driving Business Transformation.pdf
Transform Your Business with a Software ERP System

Responsive Web Design

  • 2. About Me • Julia Vishnevsky • .Net developer at ‘Yedioth Aharonot’ Daka90.co.il team • Co-founder & CTO at ‘Gigpo’ • Keep in touch: – Facebook – Linked In
  • 4. Motivation The total number of people using the web on mobile devices is set to surpass desktops by 2015
  • 5. • 77% of world's population has a mobile device • Different devices and browser have different capabilities in terms of feature support • People expect to be able to browse the web on their phones just as easily as they browse the web on a desktop computer
  • 10. Development Options • Graceful Degradation • Progressive Enhancement • Mobile Specific Version • Responsive Design
  • 11. Graceful Degradation • First build for the latest and greatest • Create a site using the newest features • Focus on the majority before catering to those outside the mainstream • Add handlers for less capable devices • make sure older browsers don't choke on the code and display the content
  • 12. Pros & Cons • Pros – Fault tolerance • Cons – The content is displayed, but the experience might be painful – Not a good experience for: • the older browser user • the mobile devices that use less capable browsers
  • 13. Progressive Enhancement • Create a baseline experience first • Use layers to provide richer experience for more capable browsers • Pros – Everyone gets a good viewing experience • Cons – Development time – Design restrictions
  • 14. Mobile Specific Version • Create a separate mobile site – Subset of functionality. • Pros: – You can fully tailor the browsing experience for mobile users. • Cons: – Mobile users won’t get the full experience. – Each new feature has to be developed twice, resulting in large maintenance costs. – Still need to make adjustments for different screen resolution
  • 16. Responsive • The design responds to – Device capabilities – Device type – Screen size and resolution – Orientation
  • 17. The Father of Responsive Design • Ethan Marcotte – Web designer, developer, speaker and author • Ethan Marcotte coined the term responsive web design (RWD) in a May 2010 article in A List Apart • http://alistapart.com/ • http://alistapart.com/article/responsive-web-design/
  • 18. “Rather than tailoring disconnected designs to each of an ever-increasing number of web devices, we can treat them as facets of the same experience.” Ethan Marcotte
  • 28. Links • http://www.bostonglobe.com • http://www.cacaotour.com/index.php/en/ho me • http://foodsense.is/
  • 30. How Responsive Design Works • It’s not a single piece of technology, but rather, a set of techniques and ideas that form a whole • 3 main components – Fully fluid web design - % – Css media queries – JS
  • 32. In The Past.. • We used to build fixed width layouts, centered
  • 33. That doesn’t work anymore..
  • 34. Fluid Layouts Fluid/liquid layout – the components have percentage widths, and thus adjust to the user’s screen resolution
  • 35. % = Target / Context
  • 36. 0.76 = 720/ 940
  • 37. 0.23 = 220/ 940
  • 38. Fluid Grid Frameworks • Flexible way to create a responsive web site
  • 41. Fluid Grid Frameworks • Pros – No math required – just count the number of columns you need – Scales to any width – uses percentage - Responsive – It’s easy
  • 42. Grid Frameworks Less Framework 4 Bootstrap
  • 43. FONTS
  • 44. What About Fonts? • EMS – The “em” is a scalable unit that is used in web document media. – 1em is equal to the current font-size of the element in question – If you haven't set font size anywhere on the page, the browser default is 16px – By default 1em = 16px – If you set a font-size of 20px on your body, then 1em = 20px
  • 45. EM = Target / Context • Default: 16px • Target: 8px • EM = 8/16 = 0.5em
  • 48. Flexible Images • Images width can also be defined in % • Setting the max-width to 100% also ensures that the image does not scale larger than its actual size
  • 52. Responsive Image Solutions • Possible solutions – Picturefill • A polyfill script for the proposed Html5 <picture> element – HiSRC • A plugin that enables you to create low-, medium- and high-resolution versions of an image, and the script will show the appropriate one based on Retina-readiness and network speed.
  • 54. Css3
  • 55. Media Queries • CSS3 module • A media query is an expressions, which resolves to either true or false • When a media query is true, the corresponding style rules are applied
  • 57. Media Types • @media screen • Recognized media types all, braille, embossed, handheld, print, projection, screen, speech, tty, tv.
  • 58. • (min-|max-)width and (min-|max-)height These allow us to query the width and height of the viewport (i.e. the browser window) • Orientation: – Landscape – Portrait
  • 62. Browser Compatibility IE 9, 10 IE 6, 7, 8 Opera 9.5+ Opera Mobile Safari 3+ Safari 2 Firefox 3.5 Firefox 1, 2 Chrome
  • 63. Possible solution • Write css for desktop browsers – the way you always did • Use media queries to optimize for smaller mobile screens • Using this workflow, older IE’s will always show the desktop version
  • 64. Problem • Not all of us browse the web using the latest mobile devices • There are lots of older, popular and less capable devices around that don’t support media queries • Using this workflow means these devices won’t show our mobile layout
  • 66. Mobile First • start with a fluid mobile layout • use media queries to optimize for bigger screens • This way, all devices are served a mobile layout at first • Meaning even devices that don’t support media queries will display the mobile version of your website
  • 67. • Most desktop browsers understand media queries so they’ll serve the desktop layout. • But what about older IE versions? – The layout will be broken but the content will still be readable.
  • 68. Polyfills • You can use a polyfill – Which forces older IE versions to interpret media queries. • Polyfill – Downloadable code which provides facilities that are not built into a web browser. – It implements technology that a developer expects the browser to provide natively.
  • 70. Browser Compatibility IE 9, 10 IE 6, 7, 8 Opera 9.5+ Opera Mobile Safari 3+ Safari 2 Firefox 3.5 Firefox 1, 2 Chrome
  • 71. JS
  • 72. JS • Browser detection • Jquery: jQuery.browser – deprecated • Js : User Agent: navigator.userAgent
  • 75. Mobile problem • http://source.tutsplus.com/webdesign/tutoria ls/037_new-viewport/viewport/no-metatag. html
  • 76. Now let’s see how that looks on mobile…
  • 77. • iOS Safari assumes a webpage is 980px wide, zooming out in order to fit the whole lot within the available (iPhone 4) 320px. • The content is then much less readable, unless you zoom in.
  • 78. Viewport <meta name="viewport" content=""> • For example, if your mobile design is purposely laid out at 320px you can specify the viewport width: <meta name="viewport" content="width=320">
  • 79. • For flexible layouts it’s more practical to base your viewport width on the device in question, so to match your layout width to the device width you’d enter: <meta name="viewport" content="width=device-width">
  • 80. • To be extra certain that your layout will be displayed as you intended it you can also set the zoom level. This, for example: <meta name="viewport" content="initial-scale=1"> • This will ensure that upon opening, your layout will be displayed properly at 1:1 scale. • No zooming will be applied. You could even go further and prevent any zooming by the user: <meta name="viewport" content="maximum-scale=1">
  • 82. Testing… • 2 main components: • Screen size • User Agent emulation • Chrome Plugins: – Mobile/RWD Tester – user agent + screen size • Chrome Emulator
  • 83. BOOKS
  • 84. Books Ben Frain Tim Kadlec