SlideShare a Scribd company logo
Responsive
      Web Design
Mark Wales, Small Hadron Collider
@smallhadron ·
The Challenge
Create all of my projects using
   Responsive Web Design
What is it?
•   Responsive designs adapt to how
    they’re being viewed

•   Check out: http://mediaqueri.es

• Generally based on width of browser
    window
Why use it?
•   A web-page is an infinite canvas

• But an unpredictable viewport

• Responsive designs will always look
    good

•   It’s intuitively the right way to do
    things
How it works
• Fluid Layouts

• Media Queries

• Responsive Images
Fluid Layouts
• Been around forever

• Using % based widths

• Not used on most sites
Media Queries
• Browser support is pretty good

• JS Polyfil available (Respond.js - on
  GitHub)
Media Queries
•   One CSS file:
    @media screen and (min-width:
    960px) { ... }

•   Separate CSS files:
    <link rel="stylesheet" href="/960.css"
    media="screen and (min-width:
Where to start?
•   Mobile first: use “min-width” not
    “max-width”

•   Start with colours

• Blocks have width set to “auto” by
    default
Responsive
•   How to show the right sized image for
    each device type?

•   Should only download the size being
    used

•   Should default to mobile images
Responsive
•   Based on article by Jake Archibald:
    http://tiny.cc/rsimg

•   Use <noscript> tags + data tags +
    JavaScript swapping
Tips & Tricks
•   Add transition effects on elements
    that change size and position

•   Use LESS or SASS for CSS

• Test on http://responsive.is/

• W3 Responsive Images Group:
    http://www.w3.org/community/
Looking Forward
• Advertising

• Proper Responsive Images

• Bandwidth Detection

• Pixel Density
The Challenge
  No problems so far

More Related Content

PDF
Keys to Responsive Design
PDF
Strategy for a Responsive UX
PDF
Seven Steps To Better JavaScript
PDF
Web usability, navigation & accessibility
PPTX
WordPress for Nonprofits - 2013
PPTX
Responsive Web Design - Web & PHP Conference - 2013-09-18
PDF
Page Performance: A No-Holds Barred, Holistic Look
PDF
How to use WordPress
Keys to Responsive Design
Strategy for a Responsive UX
Seven Steps To Better JavaScript
Web usability, navigation & accessibility
WordPress for Nonprofits - 2013
Responsive Web Design - Web & PHP Conference - 2013-09-18
Page Performance: A No-Holds Barred, Holistic Look
How to use WordPress

What's hot (18)

PPTX
Exploration project pr_akia_gatton
PPTX
Responsive Web design
PDF
Get responsive in 30 minutes (WordCamp Sofia)
PPTX
Why it's not your host's fault
PPTX
New SEO Approaches For WordPress
PDF
Being Responsive to Change
PPTX
PPTX
Website development process
PDF
Word Camp Cologne 2016: Session The WordPress 1%
PDF
Responsive to Change
PPTX
Understanding Content Management Services
PPT
Buzzr: A "Cloud" Platform for Creating and Maintaining Websites
PPTX
Group 3
PPTX
Secrets of WordPress Success - BlueGlass LA
PPTX
PDF
Responsive Web Design - Drupal Camp CPH
PPTX
Web presence presentation
PPTX
Web designing chennai
Exploration project pr_akia_gatton
Responsive Web design
Get responsive in 30 minutes (WordCamp Sofia)
Why it's not your host's fault
New SEO Approaches For WordPress
Being Responsive to Change
Website development process
Word Camp Cologne 2016: Session The WordPress 1%
Responsive to Change
Understanding Content Management Services
Buzzr: A "Cloud" Platform for Creating and Maintaining Websites
Group 3
Secrets of WordPress Success - BlueGlass LA
Responsive Web Design - Drupal Camp CPH
Web presence presentation
Web designing chennai
Ad

Viewers also liked (8)

PDF
Green[1]
PDF
PDF
Hadoop 2.0 handout 5.0
PDF
December 2013 HUG: Spark at Yahoo!
PDF
Lessons I learnt from Linux Asia 2006
DOCX
Recorrido matemático estrategias
PDF
Happy2Hire Product Features
PDF
Happy2Hire Product Features
Green[1]
Hadoop 2.0 handout 5.0
December 2013 HUG: Spark at Yahoo!
Lessons I learnt from Linux Asia 2006
Recorrido matemático estrategias
Happy2Hire Product Features
Happy2Hire Product Features
Ad

Similar to Responsive Web Design (20)

PPTX
Using Responsive Web Design To Make Your Web Work Everywhere
PDF
Responsive Web design Zambig
PPTX
Responsive web designing course in Chandigarh
PPTX
SEF 2014 - Responsive Design in SharePoint 2013
PPTX
There Is No Mobile: An Introduction To Responsive Web Design
PPTX
Mobile Best Practices
PDF
Design4Drupal Boston 2013 - Bumps in the Road to Responsive
PPTX
Responsive web design ppt
PPTX
Approaches to Responsive Wen Design & Development
PDF
Design responsively
PDF
Great Responsive-ability Web Design
PPTX
Responsive Web Design - What You Need to Know to Get Started
PDF
Node.js 101
PPTX
Using Responsive Web Design To Make Your Web Work Everywhere
PDF
Responsive Web Design
PDF
Everything Old is New Again: The State of Web Design
PPTX
Chapter 17: Responsive Web Design
PDF
FITC - Bootstrap Unleashed
PPTX
Responsive Design in iMIS Part 2
PDF
Designing CSS Layouts for the Flexible Web
Using Responsive Web Design To Make Your Web Work Everywhere
Responsive Web design Zambig
Responsive web designing course in Chandigarh
SEF 2014 - Responsive Design in SharePoint 2013
There Is No Mobile: An Introduction To Responsive Web Design
Mobile Best Practices
Design4Drupal Boston 2013 - Bumps in the Road to Responsive
Responsive web design ppt
Approaches to Responsive Wen Design & Development
Design responsively
Great Responsive-ability Web Design
Responsive Web Design - What You Need to Know to Get Started
Node.js 101
Using Responsive Web Design To Make Your Web Work Everywhere
Responsive Web Design
Everything Old is New Again: The State of Web Design
Chapter 17: Responsive Web Design
FITC - Bootstrap Unleashed
Responsive Design in iMIS Part 2
Designing CSS Layouts for the Flexible Web

Recently uploaded (20)

PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Encapsulation theory and applications.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Approach and Philosophy of On baking technology
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Spectroscopy.pptx food analysis technology
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Machine learning based COVID-19 study performance prediction
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Electronic commerce courselecture one. Pdf
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
sap open course for s4hana steps from ECC to s4
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Spectral efficient network and resource selection model in 5G networks
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
Programs and apps: productivity, graphics, security and other tools
Encapsulation theory and applications.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Building Integrated photovoltaic BIPV_UPV.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Encapsulation_ Review paper, used for researhc scholars
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Approach and Philosophy of On baking technology
Per capita expenditure prediction using model stacking based on satellite ima...
Spectroscopy.pptx food analysis technology
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
The Rise and Fall of 3GPP – Time for a Sabbatical?
Machine learning based COVID-19 study performance prediction
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Electronic commerce courselecture one. Pdf
MYSQL Presentation for SQL database connectivity
sap open course for s4hana steps from ECC to s4
The AUB Centre for AI in Media Proposal.docx
Spectral efficient network and resource selection model in 5G networks
“AI and Expert System Decision Support & Business Intelligence Systems”

Responsive Web Design

  • 1. Responsive Web Design Mark Wales, Small Hadron Collider @smallhadron ·
  • 2. The Challenge Create all of my projects using Responsive Web Design
  • 3. What is it? • Responsive designs adapt to how they’re being viewed • Check out: http://mediaqueri.es • Generally based on width of browser window
  • 4. Why use it? • A web-page is an infinite canvas • But an unpredictable viewport • Responsive designs will always look good • It’s intuitively the right way to do things
  • 5. How it works • Fluid Layouts • Media Queries • Responsive Images
  • 6. Fluid Layouts • Been around forever • Using % based widths • Not used on most sites
  • 7. Media Queries • Browser support is pretty good • JS Polyfil available (Respond.js - on GitHub)
  • 8. Media Queries • One CSS file: @media screen and (min-width: 960px) { ... } • Separate CSS files: <link rel="stylesheet" href="/960.css" media="screen and (min-width:
  • 9. Where to start? • Mobile first: use “min-width” not “max-width” • Start with colours • Blocks have width set to “auto” by default
  • 10. Responsive • How to show the right sized image for each device type? • Should only download the size being used • Should default to mobile images
  • 11. Responsive • Based on article by Jake Archibald: http://tiny.cc/rsimg • Use <noscript> tags + data tags + JavaScript swapping
  • 12. Tips & Tricks • Add transition effects on elements that change size and position • Use LESS or SASS for CSS • Test on http://responsive.is/ • W3 Responsive Images Group: http://www.w3.org/community/
  • 13. Looking Forward • Advertising • Proper Responsive Images • Bandwidth Detection • Pixel Density
  • 14. The Challenge No problems so far

Editor's Notes

  • #2: - Freelance web-developer - small hadron collider\n- Do a bit of everything: &amp;#x201C;full stack&amp;#x201D; / highly unfocused\n
  • #3: - Last september: Read Ethan Marcotte&amp;#x2019;s book, A Book Apart\n- Challenge: do all projects using RWD\n\n- Speed of presentation (please be honest):\n- Who knows what it is?\n- How many people have tried it?\n- How many people use it regularly?\n
  • #4: - Responsive designs adapt to how they being viewed \n- demo: smok.local/gallery, erbook.local/books\n- Currently most sites just use the width of the browser, but potential to do it with other things too (bandwidth, dpi, etc)\n
  • #5: - Early web design came from print: fixed layouts, fixed grids\n- Settled on 960px grid - very flexible for grids\n- Most people had 1024 or higher, but with netbooks and now mobiles and tablets can&amp;#x2019;t rely on it\n\n- Not necessarily much more work, in fact can be 10 lines of CSS extra\n
  • #6: - An old tech, a newish tech, and a hacky tech\n- Will look at the first two then cover images later\n
  • #7: - Tech has been around forever (CSS level 1, 1996)\n- % based widths instead of fixed widths (px or ems)\n- percentage width of parent element (if it has a &amp;#x201C;position&amp;#x201D; set)\n- Set body to 80%, content to 70% of body, sidebar to 30% of body\n- Not used much: can look weird at extremes, although min and max widths can be used\n
  • #8: - CSS2 supported different media types (e.g. print, screen)\n- CSS3 added queries - quickly supported\n- Support good: previous three versions on all browsers except IE\n- IE9+, Firefox 3.5+, Chrome 4.0, Safari 3.1, Opera 9.5, Android/iPhone/Opera Mobile &amp; Mini\n- Like an &amp;#x201C;if&amp;#x201D; block of code: if query is true, use this CSS. Not mutually exclusive &amp; cascades\n- All sorts of things included in CSS3 spec for Media Queries: dpi, device width, aspect ratio, etc.\n
  • #9: - I prefer to have it all in one file: less HTTP requests, so faster site\n- Also encourages the use of the cascade\n
  • #10: - Mobile first: if starting from scratch - very easy\n- If media queries are supported\n- Built in IE6 support - just add a few extra bits of CSS and you&amp;#x2019;re done\n
  • #11: - Trickier. The tech doesn&amp;#x2019;t exist yet.\n- But when&amp;#x2019;s that ever stopped web-developers (e.g. Table based layouts)\n- The problem: don&amp;#x2019;t want to use huge images if never displaying an image more than 320px wide\n- Shouldn&amp;#x2019;t download multiple sizes: pointless if mobile downloads desktop and ineffcient if desktop download mobile\n- But: server doesn&amp;#x2019;t know much about the device, so need to use javascript, which does\n- Hopefully this won&amp;#x2019;t be an issue for long: Responsive Images Working Group are on it (&amp;#x201C;Picture&amp;#x201D; tag, like &amp;#x201C;audio&amp;#x201D;). Potentially send more info to the server. But will take a while yet.\n- Two solutions: back-end and front-end\n
  • #12: - I chose javascript: keep it in one place, cookies don&amp;#x2019;t always get made in time, caching doesn&amp;#x2019;t work\n- Based on Jake Archibald&amp;#x2019;s method\n- No script tag\n- His version, by his own admission, is very dirty, but avoids repeating code\n- I prefer cleaner code, even if repetition\n- If using generated code then not an issue\n
  • #13: - Transitions: Save until the end of the project- might upset the client\n- Test on responsive.is - works on locally hosted files, \n
  • #14: \n
  • #15: - Six months and around 15 sites\n- Largely without a hitch\n