SlideShare une entreprise Scribd logo
1  sur  42
Responsive Web Design
what you need to know to get started
Jenny Brandon
Librarian / Web Designer
Michigan State University Libraries
jbrandon@mail.lib.msu.edu
I am not an expert.
What I’ll Talk About Today
• What RWD is
• Why use it
• Basic Techniques
• Options
• What we did
• Who has done it
WHAT IS RWD?
(Responsive Web Design)
Responsive web design is a web design
approach aimed at crafting sites to provide an
optimal viewing experience—easy reading and
navigation with a minimum of resizing, panning,
and scrolling—across a wide range of devices.
http://en.wikipedia.org/wiki/Responsive_web_design
“Fluid grids, flexible images, and media queries
are the three technical ingredients for
responsive web design, but it also requires a
different way of thinking. Rather than
quarantining our content into disparate, device-
specific experiences, we can use media queries
to progressively enhance our work within
different viewing contexts.”
-- Ethan Marcotte, 2010
http://alistapart.com/article/responsive-web-design/
RWD is design that responds to the size of the
browser window or device.
More succinct: RWD is conditional CSS.
Goal:
Create one website that looks good on large
monitors, small mobile devices, and everything
in between.
BRWD
(Before Responsive Web Design)
Fixed Width Layout
Fluid Layouts
Why do we need RWD?
Elements of RWD
• Media Queries
• Flexible Grids / Frameworks
• Flexible Images / Media
Media Queries
Add to head section of website:
<link rel=“stylesheet” href=“css/responsive.css” media=“screen and (max-
width: 900px)”>
and/or
Add to stylesheet/CSS:
@media screen and (max-width: 500px) {
div.mobile {
width: auto;
float: none;
margin-right: 0;
}
}
Default Media Queries in Omega 3
(Drupal Theme)
Narrow Layout:
@media all and (min-width: 740px) and (min-device-width: 740px),
(max-device-width: 800px) and (min-width: 740px) and
(orientation:landscape)
Normal Layout:
@media all and (min-width: 980px) and (min-device-width: 980px), all
and (max-device-width: 1024px) and (min-width: 1024px) and
(orientation:landscape)
Wide Layout:
@media all and (min-width: 1220px)
Other media types
http://www.w3schools.com/css/css_mediatypes.asp
Breakpoints
(width in media query)
“Every time you see 320px, 480px, 768px,
1024px used as breakpoint values, a kitten gets
its head bitten off by an angel…or something like
that.”
-- Brad Frost
http://bradfrostweb.com/blog/post/7-habits-of-highly-effective-media-queries/
(Let content determine breakpoints)
Flexible Grids / Frameworks
• Define your own parameters (more control)
– Wrapper and column widths in % or ems
– Floats (drop content down)
• Premade Grid / Framework (save time)
Frameworks
• 960grid
• YAML
• The Golden Grid
• SimpleGrid
• Frameless
• Columnal
• 1140 CSS Grid
• Skeleton
http://www.awwwards.com/grid-based-web-design-resources.html
960 Grid System
Flexible Images / Media
• Bandwidth: different images for devices
• Set max-width: 100% on the img
• Videos - Similar situation as images.
Images
img {
max-width: 100%;
height: auto;
}
Old Browsers / IE compatibility
• html5shiv
https://code.google.com/p/html5shiv/
• Modernizr
http://modernizr.com
• Respond
https://github.com/scottjehl/Respond
LAYOUT PATTERNS
http://www.lukew.com/ff/entry.asp?1514
Mostly Fluid
Column Drop
Layout Shifter
Tiny Tweaks
Off Canvas
Ready to get started?
Do It Yourself (in house)
• Web designer / frontend
developer
• Web team
• Time to train/learn
• Time to implement
Use a Vendor
• No web designer / frontend
developer
• No web team
• No time to train/learn
• Time to implement
What MSU Libraries Did
• Planned to migrate to CMS
• Decided on Drupal
• Chose to use Omega 3 base theme with 960gs
framework (responsive & save time)
• Several months of training, investigating,
learning, testing, implementing
• Launched August 2013
Truly Mobile First
University of Pittsburgh Library System
http://www.library.pitt.edu
Who has a responsive website?
Michigan Libraries
• Academic Libraries, 15%
– 23 out of 153
• Public Libraries, 10%
– 39 out of 391
References
• http://www.smashingmagazine.com/2009/06
/02/fixed-vs-fluid-vs-elastic-layout-whats-the-
right-one-for-you/
• http://www.lukew.com/ff/entry.asp?1514
• https://www.youtube.com/watch?v=BIz02qY5
BRA
QUESTIONS?

Contenu connexe

Similaire à Responsive Web Design - What You Need to Know to Get Started

Responsivedesign 7-3-2012
Responsivedesign 7-3-2012Responsivedesign 7-3-2012
Responsivedesign 7-3-2012
Thomas Carney
 
Responsive Web design _2013
Responsive Web design _2013 Responsive Web design _2013
Responsive Web design _2013
Suresh B
 
responsive web design
responsive web designresponsive web design
responsive web design
Suresh B
 

Similaire à Responsive Web Design - What You Need to Know to Get Started (20)

Responsive Web Design - Web & PHP Conference - 2013-09-18
Responsive Web Design - Web & PHP Conference - 2013-09-18Responsive Web Design - Web & PHP Conference - 2013-09-18
Responsive Web Design - Web & PHP Conference - 2013-09-18
 
Responsive Web Designing Fundamentals
Responsive Web Designing FundamentalsResponsive Web Designing Fundamentals
Responsive Web Designing Fundamentals
 
Responsive web designing ppt(1)
Responsive web designing ppt(1)Responsive web designing ppt(1)
Responsive web designing ppt(1)
 
Great Responsive-ability Web Design
Great Responsive-ability Web DesignGreat Responsive-ability Web Design
Great Responsive-ability Web Design
 
Advancio, Inc. Academy: Responsive Web Design
Advancio, Inc. Academy: Responsive Web DesignAdvancio, Inc. Academy: Responsive Web Design
Advancio, Inc. Academy: Responsive Web Design
 
Responsive web designing
Responsive web designingResponsive web designing
Responsive web designing
 
CSS3: Simply Responsive
CSS3: Simply ResponsiveCSS3: Simply Responsive
CSS3: Simply Responsive
 
Using Responsive Web Design To Make Your Web Work Everywhere
Using Responsive Web Design To Make Your Web Work Everywhere Using Responsive Web Design To Make Your Web Work Everywhere
Using Responsive Web Design To Make Your Web Work Everywhere
 
Responsive web design ppt
Responsive web design pptResponsive web design ppt
Responsive web design ppt
 
Responsivedesign 7-3-2012
Responsivedesign 7-3-2012Responsivedesign 7-3-2012
Responsivedesign 7-3-2012
 
Responsive Web design _2013
Responsive Web design _2013 Responsive Web design _2013
Responsive Web design _2013
 
responsive web design 1_oct_2013
responsive web design  1_oct_2013 responsive web design  1_oct_2013
responsive web design 1_oct_2013
 
Rwd ppt
Rwd pptRwd ppt
Rwd ppt
 
responsive web design
responsive web designresponsive web design
responsive web design
 
Webinar Recording "Best Practices in RWD - Responsive Web Design"
Webinar Recording "Best Practices in RWD - Responsive Web Design"Webinar Recording "Best Practices in RWD - Responsive Web Design"
Webinar Recording "Best Practices in RWD - Responsive Web Design"
 
Going Responsive with WordPress
Going Responsive with WordPressGoing Responsive with WordPress
Going Responsive with WordPress
 
CSS3 Media Queries: Mobile Elixir or CSS Snake Oil
CSS3 Media Queries: Mobile Elixir or CSS Snake OilCSS3 Media Queries: Mobile Elixir or CSS Snake Oil
CSS3 Media Queries: Mobile Elixir or CSS Snake Oil
 
The Rise Of Tablets: Responsive Web Design is in your future
The Rise Of Tablets: Responsive Web Design is in your futureThe Rise Of Tablets: Responsive Web Design is in your future
The Rise Of Tablets: Responsive Web Design is in your future
 
The rise of tablets how responsive web design is in your future
The rise of tablets   how responsive web design is in your futureThe rise of tablets   how responsive web design is in your future
The rise of tablets how responsive web design is in your future
 
Responsive Web Design
Responsive Web DesignResponsive Web Design
Responsive Web Design
 

Dernier

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
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
 
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
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Dernier (20)

CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
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
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
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, ...
 
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
 
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
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 

Responsive Web Design - What You Need to Know to Get Started

  • 1. Responsive Web Design what you need to know to get started Jenny Brandon Librarian / Web Designer Michigan State University Libraries jbrandon@mail.lib.msu.edu
  • 2. I am not an expert.
  • 3. What I’ll Talk About Today • What RWD is • Why use it • Basic Techniques • Options • What we did • Who has done it
  • 5. Responsive web design is a web design approach aimed at crafting sites to provide an optimal viewing experience—easy reading and navigation with a minimum of resizing, panning, and scrolling—across a wide range of devices. http://en.wikipedia.org/wiki/Responsive_web_design
  • 6. “Fluid grids, flexible images, and media queries are the three technical ingredients for responsive web design, but it also requires a different way of thinking. Rather than quarantining our content into disparate, device- specific experiences, we can use media queries to progressively enhance our work within different viewing contexts.” -- Ethan Marcotte, 2010 http://alistapart.com/article/responsive-web-design/
  • 7.
  • 8. RWD is design that responds to the size of the browser window or device. More succinct: RWD is conditional CSS. Goal: Create one website that looks good on large monitors, small mobile devices, and everything in between.
  • 9.
  • 13. Why do we need RWD?
  • 14.
  • 15. Elements of RWD • Media Queries • Flexible Grids / Frameworks • Flexible Images / Media
  • 16. Media Queries Add to head section of website: <link rel=“stylesheet” href=“css/responsive.css” media=“screen and (max- width: 900px)”> and/or Add to stylesheet/CSS: @media screen and (max-width: 500px) { div.mobile { width: auto; float: none; margin-right: 0; } }
  • 17. Default Media Queries in Omega 3 (Drupal Theme) Narrow Layout: @media all and (min-width: 740px) and (min-device-width: 740px), (max-device-width: 800px) and (min-width: 740px) and (orientation:landscape) Normal Layout: @media all and (min-width: 980px) and (min-device-width: 980px), all and (max-device-width: 1024px) and (min-width: 1024px) and (orientation:landscape) Wide Layout: @media all and (min-width: 1220px)
  • 19. Breakpoints (width in media query) “Every time you see 320px, 480px, 768px, 1024px used as breakpoint values, a kitten gets its head bitten off by an angel…or something like that.” -- Brad Frost http://bradfrostweb.com/blog/post/7-habits-of-highly-effective-media-queries/ (Let content determine breakpoints)
  • 20. Flexible Grids / Frameworks • Define your own parameters (more control) – Wrapper and column widths in % or ems – Floats (drop content down) • Premade Grid / Framework (save time)
  • 21. Frameworks • 960grid • YAML • The Golden Grid • SimpleGrid • Frameless • Columnal • 1140 CSS Grid • Skeleton http://www.awwwards.com/grid-based-web-design-resources.html
  • 23. Flexible Images / Media • Bandwidth: different images for devices • Set max-width: 100% on the img • Videos - Similar situation as images.
  • 25. Old Browsers / IE compatibility • html5shiv https://code.google.com/p/html5shiv/ • Modernizr http://modernizr.com • Respond https://github.com/scottjehl/Respond
  • 32. Ready to get started? Do It Yourself (in house) • Web designer / frontend developer • Web team • Time to train/learn • Time to implement Use a Vendor • No web designer / frontend developer • No web team • No time to train/learn • Time to implement
  • 33. What MSU Libraries Did • Planned to migrate to CMS • Decided on Drupal • Chose to use Omega 3 base theme with 960gs framework (responsive & save time) • Several months of training, investigating, learning, testing, implementing • Launched August 2013
  • 34.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39. Truly Mobile First University of Pittsburgh Library System http://www.library.pitt.edu
  • 40. Who has a responsive website? Michigan Libraries • Academic Libraries, 15% – 23 out of 153 • Public Libraries, 10% – 39 out of 391