SlideShare ist ein Scribd-Unternehmen logo
1 von 50
© DevelopmentArc LLC 2013
Responsive Web Design (RWD)
A look at what responsive web
design is and why it matters for
modern websites & designers
© DevelopmentArc LLC 2013
About me...
James Polanco ( @jamespolanco )
Founder & web application architect at DevelopmentArc
Developer of Maque (maqueapp.com)
Co-founder of Pedanco.com
Author, podcaster, surfer and co-manager of the San Diego Adobe
Developers User Group
© DevelopmentArc LLC 2013
What is Responsive Web Design?
Response Web Design (RWD) is:
The process of designing layout & functionality to fit
the needs and screen resolutions of different
devices
- from mobile phones to huge desktop monitors
Achieved by leverages existing
HTML, CSS, JavaScript browser technologies with
some new CSS3 features to have your layout
‘respond’ to the size of the screen
© DevelopmentArc LLC 2013
Boston Globe example…
© DevelopmentArc LLC 2013
Boston Globe example…
© DevelopmentArc LLC 2013
Boston Globe example…
© DevelopmentArc LLC 2013
Why is RWD becoming important?
Before we get into Responsive Design we need
a little background…
© DevelopmentArc LLC 2013
Mobile Browsing is growing…
“Mobile-based browsing has tripled in the last two
years…” – Greg Keizer via Net Applications (computerworld)
Source:
http://www.computerworld.com/s/article/9237855/Mobile_s_browser_usage_share_jumps_26_in_three_months
© DevelopmentArc LLC 2013
Screen resolutions are shrinking…
Screen Resolution Usage Screen Size / Type
1366x768 19.2% 14'' Notebook / 15.6'' Laptop / 18.5'' monitor
1280x800 11.3% 14'' Notebook
1920x1080 8.3% 21.5'' monitor / 23'' monitor / 1080p TV
1280x1024 7.2% 19'' monitor
1440x900 6.5% 19'' monitor
320x480 6.3% 3.5'' iPhone
1024x768 6.1% 15'' monitor
1680x1050 4.6% 22'' monitor
1600x900 4.4% 20'' monitor
768x1024 3.4% 9.7'' iPad
1920x1200 2% 24'' monitor
320x568 1.8% 4'' iPhone 5
720x1280 1.3% 4.8'' Galaxy S
1360x768 1%
1024x600 0.9% 7'' Galaxy Tab / 10.1'' Notebook
1280x720 0.9% 720p TV
Source: http://www.rapidtables.com/web/dev/screen-resolution-statistics.htm
© DevelopmentArc LLC 2013
But they are also growing…
“1366x768 now the most popular screen resolution”
– John Callaham (Neowin.net)
Source: http://www.neowin.net/news/study-1366x768-now-the-most-popular-screen-resolution
© DevelopmentArc LLC 2013
Demographics are important
“One in four teens access the internet primarily
through mobile” – Eliza Kern (gigaom.com)
© DevelopmentArc LLC 2013
A picture is worth a thousand words…
© DevelopmentArc LLC 2013
How does RWD work?
Responsive Web Design has three core
principles:
Flexible (or fluid) grids of content
Dynamically resizing images & other media
CSS3 Media queries to delineate layout requirements
by screen resolution
© DevelopmentArc LLC 2013
What are flexible (fluid) grids?
© DevelopmentArc LLC 2013
Flexible Grids…
Source: http://www.responsivegridsystem.com/
© DevelopmentArc LLC 2013
Flexible Grids…
Source: http://www.responsivegridsystem.com/
© DevelopmentArc LLC 2013
Flexible Grids
Provides content areas that grow
wider/narrower based on the size of the
screen
Content areas are essentially columns and rows that
can span across the page
Adjusts position of content within the grid
Items positioned in the grid are aligned and moved as
the grid adjusts
Reflow textual content within the grid
Text will automatically reflow within the grid
© DevelopmentArc LLC 2013
Flexible Grids (cont.)
Uses CSS width percentage on the grid div
elements
Ex: width: 31.333%
Initial design is done with fixed width
Typical dimensions are 960 pixel wide
Define grid area and column size based on this width
Design templates in Photoshop, Fireworks and
Illustrator can be downloaded
© DevelopmentArc LLC 2013 Source: http://www.ravelrumba.com/photoshop-grids/
© DevelopmentArc LLC 2013
Flexible Grids (cont.)
After fixed design, calculate and apply CSS
percentages
Ethan Marcotte (author of Responsive Web
Design) uses this calculation
target context = result
Target = the base element width
Context = the parent element width
Result is the percentage to apply in CSS
© DevelopmentArc LLC 2013
Flexible Grids (cont.)
Parent (405px)
Child (130px)
Calculation:
target ÷ context = result
Results:
130 ÷ 405 = 0.32098765432099
CSS:
{ width: 32.098765432099% }
© DevelopmentArc LLC 2013
How do you handle media, such as
images, in a fluid layout?
© DevelopmentArc LLC 2013
Resizing Images…
Source: http://filamentgroup.com/examples/responsive-images/
© DevelopmentArc LLC 2013
Resizing Images…
Source: http://filamentgroup.com/examples/responsive-images/
© DevelopmentArc LLC 2013
Dynamic Images
Resize Images based on screen size
Images will resize based on the parent content area
they reside in
Uses simple CSS to define image size
constraint to parent
img {
max-width: 100%;
height: auto;
}
© DevelopmentArc LLC 2013
Grids have limitations…
Make the screen too small or too big and the design falls apart.
© DevelopmentArc LLC 2013 Source: http://responsivewebdesign.com/robot/
Robot or not the the base design…
© DevelopmentArc LLC 2013 Source: http://responsivewebdesign.com/robot/
Robot or not without media queries…
© DevelopmentArc LLC 2013
Media queries to the rescue!
Radically change layout using CSS3 for different sizes
© DevelopmentArc LLC 2013
Robot or not the right way…
Source: http://responsivewebdesign.com/robot/
© DevelopmentArc LLC 2013
Robot or not the right way…
Source: http://responsivewebdesign.com/robot/
© DevelopmentArc LLC 2013
Robot or not the right way…
Source: http://responsivewebdesign.com/robot/
© DevelopmentArc LLC 2013
Media Queries
Media Queries are a CSS3 feature
You define new CSS blocks that start with the
@media key
@media screen and (max-width: 768px) {
…
}
You can set min/max screen sizes to trigger
specific CSS
@media only screen
and (min-device-width: 768px)
and (max-device-width: 1024px) {
…
}
© DevelopmentArc LLC 2013
All together now…
RWD uses Flexible grids, media resizing
and media queries
This allows for adjustable content and layout to fit all
your users’ needs
Don’t just think small…
RWD should also take advantage of larger screen
sizes
Ex: making content flow/read better on large monitors
© DevelopmentArc LLC 2013
RWD in the real world
Unfortunately it’s not all unicorns and fairy dust…
© DevelopmentArc LLC 2013
Challenges with RWD
Browser compatibility & rendering
Media queries are CSS3, which means not all browsers
support them
Internet Explore 8 and under do not support media queries
Different browser render percentages differently
they are getting a lot better at rendering sub-pixels
Asset management
CSS can scale images visually, you are still sending over
the full size image
JavaScript libraries and server technologies can help
asset management
© DevelopmentArc LLC 2013
Challenges with RWD
Device pixel density (retina vs. non-retina)
Newer devices have larger screen resolutions in a smaller
physical space
Understanding layout, sizing and asset needs for these
devices
Interaction design needs
Interactions change for hand-held devices
Users’ needs and goals change from desktop, to tablet, to
phone
Adding or removing functionality to meet your user’s goals
© DevelopmentArc LLC 2013
Challenges with RWD
Design, Development & Testing time
Design investment is much greater for understanding
interactions, functionality and layout
Development costs are higher to support RWD
Testing now means cross-browser, cross-device and
screen size
© DevelopmentArc LLC 2013
But the pain can be worth it...
The gov.uk experience
© DevelopmentArc LLC 2013
Gov.uk responsive success story
Gov.uk went responsive in Oct. 2012
Source: http://digital.cabinetoffice.gov.uk/2013/03/12/were-not-appy-not-appy-at-all/
© DevelopmentArc LLC 2013
Gov.uk responsive success story (cont.)
Mobile device usage more then doubled in a
year…
Source: http://digital.cabinetoffice.gov.uk/2013/03/12/were-not-appy-not-appy-at-all/
© DevelopmentArc LLC 2013
Helping make RWD work
There are a multitude of tools & technology…
© DevelopmentArc LLC 2013
Getting RWD done…
Using CSS, JavaScript and other
technology-based RWD frameworks
Bootstrap
http://twitter.github.io/bootstrap/
Foundation 4
http://foundation.zurb.com/
Responsive Grid System
http://www.responsivegridsystem.com/
HTML5 Boilerplate
http://html5boilerplate.com/
© DevelopmentArc LLC 2013
Getting RWD done…
Adobe Edge Reflow & Inspect
© DevelopmentArc LLC 2013
Adobe Edge Reflow
© DevelopmentArc LLC 2013
Adobe Edge Inspect
© DevelopmentArc LLC 2013
Adobe Edge Inspect
© DevelopmentArc LLC 2013
Resources…
Special thanks to Chris Griffith
http://aj-software.com/
http://chrisgriffith.wordpress.com/
Responsive Web Design by Ethan Marcotte
http://www.abookapart.com/products/responsive-web-design
Articles & Blog Posts
http://alistapart.com/article/fluidgrids
http://www.hongkiat.com/blog/rwd-tools/
http://responsive.is/trentwalton.com
http://bradfrost.github.io/this-is-responsive/resources.html
http://www.adobe.com/devnet/edge-reflow/articles/introducing-
edge-reflow.html
© DevelopmentArc LLC 2013
Q&A
Have questions? Want to talk about
something more? Ask away...
© DevelopmentArc LLC 2013
Thank you!
@jamespolanco
http://developmentarc.com
http://pedanco.com
http://maqueapp.com
Previous Presentations:
http://www.slideshare.net/developmentarc/

Weitere ähnliche Inhalte

Andere mochten auch (11)

Crónica ts laboral 2014 2015
Crónica ts laboral 2014 2015Crónica ts laboral 2014 2015
Crónica ts laboral 2014 2015
 
Hcc 3711 we keep hou wrkg card fnl2
Hcc 3711 we keep hou wrkg card fnl2Hcc 3711 we keep hou wrkg card fnl2
Hcc 3711 we keep hou wrkg card fnl2
 
Shamwicca workshop 21052016
Shamwicca workshop 21052016Shamwicca workshop 21052016
Shamwicca workshop 21052016
 
¿Y a partir de ahora qué?
¿Y a partir de ahora qué?¿Y a partir de ahora qué?
¿Y a partir de ahora qué?
 
Bilboko Merkataritza PlanEstrategikoa 2015 – 2019
Bilboko Merkataritza PlanEstrategikoa 2015 – 2019Bilboko Merkataritza PlanEstrategikoa 2015 – 2019
Bilboko Merkataritza PlanEstrategikoa 2015 – 2019
 
Minuta 19
Minuta 19Minuta 19
Minuta 19
 
Epidemological studies
Epidemological studies Epidemological studies
Epidemological studies
 
Mi 3
Mi 3Mi 3
Mi 3
 
Minuta v
Minuta vMinuta v
Minuta v
 
Año bíblico 2016
Año bíblico 2016Año bíblico 2016
Año bíblico 2016
 
Artifical neural networks in 5 minutes
Artifical neural networks in 5 minutesArtifical neural networks in 5 minutes
Artifical neural networks in 5 minutes
 

Ähnlich wie Responsive design

PSD to Responsive Webdesign
PSD to Responsive Webdesign PSD to Responsive Webdesign
PSD to Responsive Webdesign
XHTML Champs
 
Responsivedesign 7-3-2012
Responsivedesign 7-3-2012Responsivedesign 7-3-2012
Responsivedesign 7-3-2012
Thomas Carney
 

Ähnlich wie Responsive design (20)

Alexa IT Solution Responsive Web designing
Alexa IT Solution Responsive Web designingAlexa IT Solution Responsive Web designing
Alexa IT Solution Responsive Web designing
 
reponsive-web-design.pptx
reponsive-web-design.pptxreponsive-web-design.pptx
reponsive-web-design.pptx
 
reponsive-web-design.pptx
reponsive-web-design.pptxreponsive-web-design.pptx
reponsive-web-design.pptx
 
Reponsive web design (HTML5 + css3)
Reponsive web design (HTML5 + css3)Reponsive web design (HTML5 + css3)
Reponsive web design (HTML5 + css3)
 
Intro to Responsive Web Design
Intro to Responsive Web DesignIntro to Responsive Web Design
Intro to Responsive Web Design
 
Responsive Web Design | Website Designing
Responsive Web Design | Website DesigningResponsive Web Design | Website Designing
Responsive Web Design | Website Designing
 
Responsive Web Design Overview 2013
Responsive Web Design Overview 2013Responsive Web Design Overview 2013
Responsive Web Design Overview 2013
 
RESPONSIVE_WEB_DESIGNRESPONSIVE_WEB_DESIGN
RESPONSIVE_WEB_DESIGNRESPONSIVE_WEB_DESIGNRESPONSIVE_WEB_DESIGNRESPONSIVE_WEB_DESIGN
RESPONSIVE_WEB_DESIGNRESPONSIVE_WEB_DESIGN
 
PSD to Responsive Webdesign
PSD to Responsive Webdesign PSD to Responsive Webdesign
PSD to Responsive Webdesign
 
Responsive Web Design helps SEO Boost up by XHTMLChamps
Responsive Web Design helps SEO Boost up by XHTMLChampsResponsive Web Design helps SEO Boost up by XHTMLChamps
Responsive Web Design helps SEO Boost up by XHTMLChamps
 
Responsive Web Design in Cascade Server, by Chris Cox of BarkleyREI
Responsive Web Design in Cascade Server, by Chris Cox of BarkleyREIResponsive Web Design in Cascade Server, by Chris Cox of BarkleyREI
Responsive Web Design in Cascade Server, by Chris Cox of BarkleyREI
 
Digibury: Getting your web presence mobile ready - David Walker
Digibury: Getting your web presence mobile ready - David WalkerDigibury: Getting your web presence mobile ready - David Walker
Digibury: Getting your web presence mobile ready - David Walker
 
Does your website have these elements of responsive web design?
Does your website have these elements of responsive web design? Does your website have these elements of responsive web design?
Does your website have these elements of responsive web design?
 
Responsive Design
Responsive DesignResponsive Design
Responsive Design
 
Responsive Web Design
Responsive Web DesignResponsive Web Design
Responsive Web Design
 
Responsivedesign 7-3-2012
Responsivedesign 7-3-2012Responsivedesign 7-3-2012
Responsivedesign 7-3-2012
 
Shamit khemka talks about Responsive Web Designing Owning the Web
Shamit khemka talks about Responsive Web Designing Owning the WebShamit khemka talks about Responsive Web Designing Owning the Web
Shamit khemka talks about Responsive Web Designing Owning the Web
 
Responsive web designing
Responsive web designingResponsive web designing
Responsive web designing
 
Responsive Web Design Basics
Responsive Web Design BasicsResponsive Web Design Basics
Responsive Web Design Basics
 
Responsive web
Responsive webResponsive web
Responsive web
 

Kürzlich hochgeladen

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Kürzlich hochgeladen (20)

Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 

Responsive design

  • 1. © DevelopmentArc LLC 2013 Responsive Web Design (RWD) A look at what responsive web design is and why it matters for modern websites & designers
  • 2. © DevelopmentArc LLC 2013 About me... James Polanco ( @jamespolanco ) Founder & web application architect at DevelopmentArc Developer of Maque (maqueapp.com) Co-founder of Pedanco.com Author, podcaster, surfer and co-manager of the San Diego Adobe Developers User Group
  • 3. © DevelopmentArc LLC 2013 What is Responsive Web Design? Response Web Design (RWD) is: The process of designing layout & functionality to fit the needs and screen resolutions of different devices - from mobile phones to huge desktop monitors Achieved by leverages existing HTML, CSS, JavaScript browser technologies with some new CSS3 features to have your layout ‘respond’ to the size of the screen
  • 4. © DevelopmentArc LLC 2013 Boston Globe example…
  • 5. © DevelopmentArc LLC 2013 Boston Globe example…
  • 6. © DevelopmentArc LLC 2013 Boston Globe example…
  • 7. © DevelopmentArc LLC 2013 Why is RWD becoming important? Before we get into Responsive Design we need a little background…
  • 8. © DevelopmentArc LLC 2013 Mobile Browsing is growing… “Mobile-based browsing has tripled in the last two years…” – Greg Keizer via Net Applications (computerworld) Source: http://www.computerworld.com/s/article/9237855/Mobile_s_browser_usage_share_jumps_26_in_three_months
  • 9. © DevelopmentArc LLC 2013 Screen resolutions are shrinking… Screen Resolution Usage Screen Size / Type 1366x768 19.2% 14'' Notebook / 15.6'' Laptop / 18.5'' monitor 1280x800 11.3% 14'' Notebook 1920x1080 8.3% 21.5'' monitor / 23'' monitor / 1080p TV 1280x1024 7.2% 19'' monitor 1440x900 6.5% 19'' monitor 320x480 6.3% 3.5'' iPhone 1024x768 6.1% 15'' monitor 1680x1050 4.6% 22'' monitor 1600x900 4.4% 20'' monitor 768x1024 3.4% 9.7'' iPad 1920x1200 2% 24'' monitor 320x568 1.8% 4'' iPhone 5 720x1280 1.3% 4.8'' Galaxy S 1360x768 1% 1024x600 0.9% 7'' Galaxy Tab / 10.1'' Notebook 1280x720 0.9% 720p TV Source: http://www.rapidtables.com/web/dev/screen-resolution-statistics.htm
  • 10. © DevelopmentArc LLC 2013 But they are also growing… “1366x768 now the most popular screen resolution” – John Callaham (Neowin.net) Source: http://www.neowin.net/news/study-1366x768-now-the-most-popular-screen-resolution
  • 11. © DevelopmentArc LLC 2013 Demographics are important “One in four teens access the internet primarily through mobile” – Eliza Kern (gigaom.com)
  • 12. © DevelopmentArc LLC 2013 A picture is worth a thousand words…
  • 13. © DevelopmentArc LLC 2013 How does RWD work? Responsive Web Design has three core principles: Flexible (or fluid) grids of content Dynamically resizing images & other media CSS3 Media queries to delineate layout requirements by screen resolution
  • 14. © DevelopmentArc LLC 2013 What are flexible (fluid) grids?
  • 15. © DevelopmentArc LLC 2013 Flexible Grids… Source: http://www.responsivegridsystem.com/
  • 16. © DevelopmentArc LLC 2013 Flexible Grids… Source: http://www.responsivegridsystem.com/
  • 17. © DevelopmentArc LLC 2013 Flexible Grids Provides content areas that grow wider/narrower based on the size of the screen Content areas are essentially columns and rows that can span across the page Adjusts position of content within the grid Items positioned in the grid are aligned and moved as the grid adjusts Reflow textual content within the grid Text will automatically reflow within the grid
  • 18. © DevelopmentArc LLC 2013 Flexible Grids (cont.) Uses CSS width percentage on the grid div elements Ex: width: 31.333% Initial design is done with fixed width Typical dimensions are 960 pixel wide Define grid area and column size based on this width Design templates in Photoshop, Fireworks and Illustrator can be downloaded
  • 19. © DevelopmentArc LLC 2013 Source: http://www.ravelrumba.com/photoshop-grids/
  • 20. © DevelopmentArc LLC 2013 Flexible Grids (cont.) After fixed design, calculate and apply CSS percentages Ethan Marcotte (author of Responsive Web Design) uses this calculation target context = result Target = the base element width Context = the parent element width Result is the percentage to apply in CSS
  • 21. © DevelopmentArc LLC 2013 Flexible Grids (cont.) Parent (405px) Child (130px) Calculation: target ÷ context = result Results: 130 ÷ 405 = 0.32098765432099 CSS: { width: 32.098765432099% }
  • 22. © DevelopmentArc LLC 2013 How do you handle media, such as images, in a fluid layout?
  • 23. © DevelopmentArc LLC 2013 Resizing Images… Source: http://filamentgroup.com/examples/responsive-images/
  • 24. © DevelopmentArc LLC 2013 Resizing Images… Source: http://filamentgroup.com/examples/responsive-images/
  • 25. © DevelopmentArc LLC 2013 Dynamic Images Resize Images based on screen size Images will resize based on the parent content area they reside in Uses simple CSS to define image size constraint to parent img { max-width: 100%; height: auto; }
  • 26. © DevelopmentArc LLC 2013 Grids have limitations… Make the screen too small or too big and the design falls apart.
  • 27. © DevelopmentArc LLC 2013 Source: http://responsivewebdesign.com/robot/ Robot or not the the base design…
  • 28. © DevelopmentArc LLC 2013 Source: http://responsivewebdesign.com/robot/ Robot or not without media queries…
  • 29. © DevelopmentArc LLC 2013 Media queries to the rescue! Radically change layout using CSS3 for different sizes
  • 30. © DevelopmentArc LLC 2013 Robot or not the right way… Source: http://responsivewebdesign.com/robot/
  • 31. © DevelopmentArc LLC 2013 Robot or not the right way… Source: http://responsivewebdesign.com/robot/
  • 32. © DevelopmentArc LLC 2013 Robot or not the right way… Source: http://responsivewebdesign.com/robot/
  • 33. © DevelopmentArc LLC 2013 Media Queries Media Queries are a CSS3 feature You define new CSS blocks that start with the @media key @media screen and (max-width: 768px) { … } You can set min/max screen sizes to trigger specific CSS @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) { … }
  • 34. © DevelopmentArc LLC 2013 All together now… RWD uses Flexible grids, media resizing and media queries This allows for adjustable content and layout to fit all your users’ needs Don’t just think small… RWD should also take advantage of larger screen sizes Ex: making content flow/read better on large monitors
  • 35. © DevelopmentArc LLC 2013 RWD in the real world Unfortunately it’s not all unicorns and fairy dust…
  • 36. © DevelopmentArc LLC 2013 Challenges with RWD Browser compatibility & rendering Media queries are CSS3, which means not all browsers support them Internet Explore 8 and under do not support media queries Different browser render percentages differently they are getting a lot better at rendering sub-pixels Asset management CSS can scale images visually, you are still sending over the full size image JavaScript libraries and server technologies can help asset management
  • 37. © DevelopmentArc LLC 2013 Challenges with RWD Device pixel density (retina vs. non-retina) Newer devices have larger screen resolutions in a smaller physical space Understanding layout, sizing and asset needs for these devices Interaction design needs Interactions change for hand-held devices Users’ needs and goals change from desktop, to tablet, to phone Adding or removing functionality to meet your user’s goals
  • 38. © DevelopmentArc LLC 2013 Challenges with RWD Design, Development & Testing time Design investment is much greater for understanding interactions, functionality and layout Development costs are higher to support RWD Testing now means cross-browser, cross-device and screen size
  • 39. © DevelopmentArc LLC 2013 But the pain can be worth it... The gov.uk experience
  • 40. © DevelopmentArc LLC 2013 Gov.uk responsive success story Gov.uk went responsive in Oct. 2012 Source: http://digital.cabinetoffice.gov.uk/2013/03/12/were-not-appy-not-appy-at-all/
  • 41. © DevelopmentArc LLC 2013 Gov.uk responsive success story (cont.) Mobile device usage more then doubled in a year… Source: http://digital.cabinetoffice.gov.uk/2013/03/12/were-not-appy-not-appy-at-all/
  • 42. © DevelopmentArc LLC 2013 Helping make RWD work There are a multitude of tools & technology…
  • 43. © DevelopmentArc LLC 2013 Getting RWD done… Using CSS, JavaScript and other technology-based RWD frameworks Bootstrap http://twitter.github.io/bootstrap/ Foundation 4 http://foundation.zurb.com/ Responsive Grid System http://www.responsivegridsystem.com/ HTML5 Boilerplate http://html5boilerplate.com/
  • 44. © DevelopmentArc LLC 2013 Getting RWD done… Adobe Edge Reflow & Inspect
  • 45. © DevelopmentArc LLC 2013 Adobe Edge Reflow
  • 46. © DevelopmentArc LLC 2013 Adobe Edge Inspect
  • 47. © DevelopmentArc LLC 2013 Adobe Edge Inspect
  • 48. © DevelopmentArc LLC 2013 Resources… Special thanks to Chris Griffith http://aj-software.com/ http://chrisgriffith.wordpress.com/ Responsive Web Design by Ethan Marcotte http://www.abookapart.com/products/responsive-web-design Articles & Blog Posts http://alistapart.com/article/fluidgrids http://www.hongkiat.com/blog/rwd-tools/ http://responsive.is/trentwalton.com http://bradfrost.github.io/this-is-responsive/resources.html http://www.adobe.com/devnet/edge-reflow/articles/introducing- edge-reflow.html
  • 49. © DevelopmentArc LLC 2013 Q&A Have questions? Want to talk about something more? Ask away...
  • 50. © DevelopmentArc LLC 2013 Thank you! @jamespolanco http://developmentarc.com http://pedanco.com http://maqueapp.com Previous Presentations: http://www.slideshare.net/developmentarc/