SlideShare a Scribd company logo
1 of 13
Download to read offline
Responsive Web Design
Slides / Info


     http://www.cargomedia.ch/blog/


          Christophe Schwyzer
            @stophedotcom
                @cargomedia
Browser- vs Feature-Detection




● modernizr
● caniuse.com
Screen Sizes & Flexible Layout

● Organize Content
● Set Viewport Size
  <meta name="viewport" content="width=device-width, initial-scale=1,
  maximum-scale=1, user-scalable=no" />

● Media Queries
  @media only screen and (max-width : 320px) {
      /* Styles for screen-widths equal to or less than 320px */
  }
Screen Resolution




http://coding.smashingmagazine.com/2012/08/20/towards-retina-web/
Icon Font




http://css-tricks.com/examples/IconFont/
Icon Font

UPSIDE
●   Cross browser support
●   Full css styles advantages: size, color, text-shadow, etc.



DOWNSIDES
●   only monochrome color
●   time consuming to maintain *


* Font Custom
Scalable Vector Graphics (SVG)




Animations




http://jsfiddle.net/f5MPb/1/
Scalable Vector Graphics (SVG)
UPSIDES
●   Suitable for all screen sizes and resolutions
●   Relatively small file size
●   Works for animations
●   It is XML Data – You can make (small) design adjustments directly from
    your editor or via css / javascript.
●   You can embed SVG using: object, embed, iframe, as background-
    image, or directly inside html with a <svg> tag.

DOWNSIDES
●   Needs fallback to png/jpg/gif for ancient browsers
●   Performance: Resource intense (specially for animations / complex
    images)
Responsive Media Embedding
    container



                100%




Images
max-width: 100%;


@media
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and ( min--moz-device-pixel-ratio: 2),
...
{
    /* Retina-specific stuff here -> Serve double-sized image and scale it 50% */
}
Video
<video> (html5)
max-width: 100%;


<iframe><object><embed>
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* for videos with 16:9 ratio */
    height: 0; /* IE5 + IE6 */


        iframe, object, embed {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }
}
Related Topics
●    text-overflow
●    is :hover dead?
●    flexbox
●    homescreen shortcuts



Useful Resources
●   Guidelines for Responsive Web Design by Kayla Knight.
●   Responsive Web Design Patterns
●   caniuse.com
●   modernizr

More Related Content

What's hot

Blueprint css framework
Blueprint css frameworkBlueprint css framework
Blueprint css frameworkTechsailor
 
Bruce Lawson Opera Indonesia
Bruce Lawson Opera IndonesiaBruce Lawson Opera Indonesia
Bruce Lawson Opera Indonesiabrucelawson
 
Website creation software
Website creation softwareWebsite creation software
Website creation softwareVijay sharma
 
The Power of Page Builder Plugins in Building a WordPress Site
 - Presented b...
The Power of Page Builder Plugins in Building a WordPress Site
 - Presented b...The Power of Page Builder Plugins in Building a WordPress Site
 - Presented b...
The Power of Page Builder Plugins in Building a WordPress Site
 - Presented b...WordCamp Harare
 
Wordpress website development workshop by Seham Abdlnaeem
Wordpress website development workshop by Seham AbdlnaeemWordpress website development workshop by Seham Abdlnaeem
Wordpress website development workshop by Seham AbdlnaeemGDGKuwaitGoogleDevel
 
Website Using WordPress
Website Using WordPressWebsite Using WordPress
Website Using WordPressVishalPatir
 
Dreamweaver cs6 multiple browsers and devices training demo
Dreamweaver cs6 multiple browsers and devices training demoDreamweaver cs6 multiple browsers and devices training demo
Dreamweaver cs6 multiple browsers and devices training demoyunjuli
 
WordPress for Beginners | WordCamp Birmingham
WordPress for Beginners | WordCamp BirminghamWordPress for Beginners | WordCamp Birmingham
WordPress for Beginners | WordCamp BirminghamBrian Krogsgard
 
What Is WordPress Multisite - AKA WPMU
What Is WordPress Multisite - AKA WPMUWhat Is WordPress Multisite - AKA WPMU
What Is WordPress Multisite - AKA WPMUZero Point Development
 
Responsive Web Design with Bootstrap
Responsive Web Design with BootstrapResponsive Web Design with Bootstrap
Responsive Web Design with BootstrapJason Stehle
 
Website using word press
Website using word pressWebsite using word press
Website using word pressVishalPatir
 
บรรณานุกรม
บรรณานุกรมบรรณานุกรม
บรรณานุกรมIShadow' Leo'os
 
Why WordPress Works
Why WordPress WorksWhy WordPress Works
Why WordPress Worksbekee
 

What's hot (20)

Moto 360
Moto 360Moto 360
Moto 360
 
Blueprint css framework
Blueprint css frameworkBlueprint css framework
Blueprint css framework
 
WebAssembly
WebAssemblyWebAssembly
WebAssembly
 
Bruce Lawson Opera Indonesia
Bruce Lawson Opera IndonesiaBruce Lawson Opera Indonesia
Bruce Lawson Opera Indonesia
 
Website creation software
Website creation softwareWebsite creation software
Website creation software
 
Windows hosting
Windows hostingWindows hosting
Windows hosting
 
The Power of Page Builder Plugins in Building a WordPress Site
 - Presented b...
The Power of Page Builder Plugins in Building a WordPress Site
 - Presented b...The Power of Page Builder Plugins in Building a WordPress Site
 - Presented b...
The Power of Page Builder Plugins in Building a WordPress Site
 - Presented b...
 
Wordpress website development workshop by Seham Abdlnaeem
Wordpress website development workshop by Seham AbdlnaeemWordpress website development workshop by Seham Abdlnaeem
Wordpress website development workshop by Seham Abdlnaeem
 
Website Using WordPress
Website Using WordPressWebsite Using WordPress
Website Using WordPress
 
Blazor
BlazorBlazor
Blazor
 
Dreamweaver cs6 multiple browsers and devices training demo
Dreamweaver cs6 multiple browsers and devices training demoDreamweaver cs6 multiple browsers and devices training demo
Dreamweaver cs6 multiple browsers and devices training demo
 
WordPress for Beginners | WordCamp Birmingham
WordPress for Beginners | WordCamp BirminghamWordPress for Beginners | WordCamp Birmingham
WordPress for Beginners | WordCamp Birmingham
 
What Is WordPress Multisite - AKA WPMU
What Is WordPress Multisite - AKA WPMUWhat Is WordPress Multisite - AKA WPMU
What Is WordPress Multisite - AKA WPMU
 
Responsive Web Design with Bootstrap
Responsive Web Design with BootstrapResponsive Web Design with Bootstrap
Responsive Web Design with Bootstrap
 
Free VR
Free VRFree VR
Free VR
 
How to develop browser extension
How to develop browser extensionHow to develop browser extension
How to develop browser extension
 
Website using word press
Website using word pressWebsite using word press
Website using word press
 
บรรณานุกรม
บรรณานุกรมบรรณานุกรม
บรรณานุกรม
 
Why WordPress Works
Why WordPress WorksWhy WordPress Works
Why WordPress Works
 
3d web
3d web3d web
3d web
 

Viewers also liked

Research and Planning: The moving image work.
Research and Planning: The moving image work.Research and Planning: The moving image work.
Research and Planning: The moving image work.Kimberley Carroll
 
Buka account fxclearing,deposit,penarikan dana
Buka account fxclearing,deposit,penarikan danaBuka account fxclearing,deposit,penarikan dana
Buka account fxclearing,deposit,penarikan danasyarif72
 
How effective is the combination of your main product and ancillary texts?
How effective is the combination of your main product and ancillary texts?How effective is the combination of your main product and ancillary texts?
How effective is the combination of your main product and ancillary texts?Kimberley Carroll
 
3D Design(Printing) Technology
3D Design(Printing) Technology3D Design(Printing) Technology
3D Design(Printing) TechnologyUday Reddy
 

Viewers also liked (11)

Research and Planning: The moving image work.
Research and Planning: The moving image work.Research and Planning: The moving image work.
Research and Planning: The moving image work.
 
The beta obsession
The beta obsessionThe beta obsession
The beta obsession
 
Location Recce
Location RecceLocation Recce
Location Recce
 
Buka account fxclearing,deposit,penarikan dana
Buka account fxclearing,deposit,penarikan danaBuka account fxclearing,deposit,penarikan dana
Buka account fxclearing,deposit,penarikan dana
 
location recce
location reccelocation recce
location recce
 
Media Evaluation
Media EvaluationMedia Evaluation
Media Evaluation
 
Media Evaluation.
Media Evaluation.Media Evaluation.
Media Evaluation.
 
How effective is the combination of your main product and ancillary texts?
How effective is the combination of your main product and ancillary texts?How effective is the combination of your main product and ancillary texts?
How effective is the combination of your main product and ancillary texts?
 
Pirates of the caribbean
Pirates of the caribbeanPirates of the caribbean
Pirates of the caribbean
 
127 hours case study
127 hours case study127 hours case study
127 hours case study
 
3D Design(Printing) Technology
3D Design(Printing) Technology3D Design(Printing) Technology
3D Design(Printing) Technology
 

Similar to Responsive Web Design

Html 5 mobile - nitty gritty
Html 5 mobile - nitty grittyHtml 5 mobile - nitty gritty
Html 5 mobile - nitty grittyMario Noble
 
Pinkoi Mobile Web
Pinkoi Mobile WebPinkoi Mobile Web
Pinkoi Mobile Webmikeleeme
 
Responsive websites. Toolbox
Responsive websites. ToolboxResponsive websites. Toolbox
Responsive websites. ToolboxWojtek Zając
 
Responsive UX - One size fits all @BigDesign conference #BigD12
Responsive UX - One size fits all   @BigDesign conference #BigD12Responsive UX - One size fits all   @BigDesign conference #BigD12
Responsive UX - One size fits all @BigDesign conference #BigD12touchtitans
 
Responsive design and retina displays
Responsive design and retina displaysResponsive design and retina displays
Responsive design and retina displaysEli McMakin
 
Responsive Web Design for Drupal, CMS Expo
Responsive Web Design for Drupal, CMS ExpoResponsive Web Design for Drupal, CMS Expo
Responsive Web Design for Drupal, CMS ExpoEmma Jane Hogbin Westby
 
Responsive Web Design (HeadStart TechTalks)
Responsive Web Design (HeadStart TechTalks)Responsive Web Design (HeadStart TechTalks)
Responsive Web Design (HeadStart TechTalks)Tirthesh Ganatra
 
CSS3 Media Queries & Kick Start for Mobile
CSS3 Media Queries & Kick Start for MobileCSS3 Media Queries & Kick Start for Mobile
CSS3 Media Queries & Kick Start for Mobileambientphoto
 
Dynamic User Interfaces for Desktop and Mobile
Dynamic User Interfaces for Desktop and MobileDynamic User Interfaces for Desktop and Mobile
Dynamic User Interfaces for Desktop and Mobilepeychevi
 
HTML and Responsive Design
HTML and Responsive Design HTML and Responsive Design
HTML and Responsive Design Mindy McAdams
 
Responsive Web Designed for your communication and marketing needs
Responsive Web Designed for your communication and marketing needsResponsive Web Designed for your communication and marketing needs
Responsive Web Designed for your communication and marketing needsSEGIC
 
Responsive Web Design On Student's day
Responsive Web Design On Student's day Responsive Web Design On Student's day
Responsive Web Design On Student's day psophy
 
Responsive Websites
Responsive WebsitesResponsive Websites
Responsive WebsitesJoe Seifi
 
Transmission2 25.11.2009
Transmission2 25.11.2009Transmission2 25.11.2009
Transmission2 25.11.2009Patrick Lauke
 
Responsive Web Design tips and tricks.
Responsive Web Design tips and tricks.Responsive Web Design tips and tricks.
Responsive Web Design tips and tricks.GaziAhsan
 
Great Responsive-ability Web Design
Great Responsive-ability Web DesignGreat Responsive-ability Web Design
Great Responsive-ability Web DesignMike Wilcox
 
Building a Better Web with HTML5 and CSS3
Building a Better Web with HTML5 and CSS3Building a Better Web with HTML5 and CSS3
Building a Better Web with HTML5 and CSS3Karambir Singh Nain
 
Designing for mobile
Designing for mobileDesigning for mobile
Designing for mobileDee Sadler
 

Similar to Responsive Web Design (20)

Html 5 mobile - nitty gritty
Html 5 mobile - nitty grittyHtml 5 mobile - nitty gritty
Html 5 mobile - nitty gritty
 
Pinkoi Mobile Web
Pinkoi Mobile WebPinkoi Mobile Web
Pinkoi Mobile Web
 
Responsive websites. Toolbox
Responsive websites. ToolboxResponsive websites. Toolbox
Responsive websites. Toolbox
 
Responsive UX - One size fits all @BigDesign conference #BigD12
Responsive UX - One size fits all   @BigDesign conference #BigD12Responsive UX - One size fits all   @BigDesign conference #BigD12
Responsive UX - One size fits all @BigDesign conference #BigD12
 
Responsive design and retina displays
Responsive design and retina displaysResponsive design and retina displays
Responsive design and retina displays
 
Responsive Web Design for Drupal, CMS Expo
Responsive Web Design for Drupal, CMS ExpoResponsive Web Design for Drupal, CMS Expo
Responsive Web Design for Drupal, CMS Expo
 
Responsive design
Responsive designResponsive design
Responsive design
 
Responsive Web Design (HeadStart TechTalks)
Responsive Web Design (HeadStart TechTalks)Responsive Web Design (HeadStart TechTalks)
Responsive Web Design (HeadStart TechTalks)
 
CSS3 Media Queries & Kick Start for Mobile
CSS3 Media Queries & Kick Start for MobileCSS3 Media Queries & Kick Start for Mobile
CSS3 Media Queries & Kick Start for Mobile
 
Dynamic User Interfaces for Desktop and Mobile
Dynamic User Interfaces for Desktop and MobileDynamic User Interfaces for Desktop and Mobile
Dynamic User Interfaces for Desktop and Mobile
 
HTML and Responsive Design
HTML and Responsive Design HTML and Responsive Design
HTML and Responsive Design
 
Responsive Web Designed for your communication and marketing needs
Responsive Web Designed for your communication and marketing needsResponsive Web Designed for your communication and marketing needs
Responsive Web Designed for your communication and marketing needs
 
Responsive Web Design On Student's day
Responsive Web Design On Student's day Responsive Web Design On Student's day
Responsive Web Design On Student's day
 
Responsive Websites
Responsive WebsitesResponsive Websites
Responsive Websites
 
Transmission2 25.11.2009
Transmission2 25.11.2009Transmission2 25.11.2009
Transmission2 25.11.2009
 
Responsive Web Design tips and tricks.
Responsive Web Design tips and tricks.Responsive Web Design tips and tricks.
Responsive Web Design tips and tricks.
 
Rwd slidedeck
Rwd slidedeckRwd slidedeck
Rwd slidedeck
 
Great Responsive-ability Web Design
Great Responsive-ability Web DesignGreat Responsive-ability Web Design
Great Responsive-ability Web Design
 
Building a Better Web with HTML5 and CSS3
Building a Better Web with HTML5 and CSS3Building a Better Web with HTML5 and CSS3
Building a Better Web with HTML5 and CSS3
 
Designing for mobile
Designing for mobileDesigning for mobile
Designing for mobile
 

Responsive Web Design

  • 2.
  • 3. Slides / Info http://www.cargomedia.ch/blog/ Christophe Schwyzer @stophedotcom @cargomedia
  • 4. Browser- vs Feature-Detection ● modernizr ● caniuse.com
  • 5. Screen Sizes & Flexible Layout ● Organize Content ● Set Viewport Size <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" /> ● Media Queries @media only screen and (max-width : 320px) { /* Styles for screen-widths equal to or less than 320px */ }
  • 8. Icon Font UPSIDE ● Cross browser support ● Full css styles advantages: size, color, text-shadow, etc. DOWNSIDES ● only monochrome color ● time consuming to maintain * * Font Custom
  • 9. Scalable Vector Graphics (SVG) Animations http://jsfiddle.net/f5MPb/1/
  • 10. Scalable Vector Graphics (SVG) UPSIDES ● Suitable for all screen sizes and resolutions ● Relatively small file size ● Works for animations ● It is XML Data – You can make (small) design adjustments directly from your editor or via css / javascript. ● You can embed SVG using: object, embed, iframe, as background- image, or directly inside html with a <svg> tag. DOWNSIDES ● Needs fallback to png/jpg/gif for ancient browsers ● Performance: Resource intense (specially for animations / complex images)
  • 11. Responsive Media Embedding container 100% Images max-width: 100%; @media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and ( min--moz-device-pixel-ratio: 2), ... { /* Retina-specific stuff here -> Serve double-sized image and scale it 50% */ }
  • 12. Video <video> (html5) max-width: 100%; <iframe><object><embed> .video-container { position: relative; padding-bottom: 56.25%; /* for videos with 16:9 ratio */ height: 0; /* IE5 + IE6 */ iframe, object, embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } }
  • 13. Related Topics ● text-overflow ● is :hover dead? ● flexbox ● homescreen shortcuts Useful Resources ● Guidelines for Responsive Web Design by Kayla Knight. ● Responsive Web Design Patterns ● caniuse.com ● modernizr