SlideShare a Scribd company logo
Responsive Web Design “ The Way is shaped by use,But then the shape is lost.Do not hold fast to shapesBut let sensation flow into the worldAs a river courses down to the sea.—DAO DE JING, section 32, “Shapes”
Resources Ethan Marcotte - Responsive Web Design (A Book Apart) Smashing Magazine - ( http://coding.smashingmagazine.com/2011/01/12/guidelines-for-responsive-web-design/ )  A Dao of Web Design ( http://www.alistapart.com/articles/dao/ )
What  is  responsive web design?
 
 
 
 
 
 
 
 
 
 
THE INGREDIENTS
SIMPLES
THREE INGREDIENTS A flexible, grid-based layout Flexible images and media Media queries - a module from the CSS3 specification
THREE INGREDIENTS A flexible, grid-based layout
Flexible Grid Based Layout
Flexible - Step 1 Typography
The following slides contain maths
“THE ALGORITHM” target ÷ context = result
“THE ALGORITHM” target ÷ context = result 24px ÷ 16px = 1.5em
Flexible - Step 1 Typography body { font-size: 100% } h1 { font-size: 1.5em /* 24px / 16px */ } h2 { font-size: 1.25em /* 20px / 16px */ }
Flexible - Step 2 Typography Layout
Flexible - Step 2 Typography Layout
The following slides contain maths
“THE ALGORITHM” target ÷ context = result
Flexible Grid Based Layout
“THE ALGORITHM” 620 ÷ 1024px = 0.60546875  (header) 360 ÷ 1024px = 0.3515625  (nav) 730 ÷ 1024px = 0.712890625  (article) 250 ÷ 1024px = 0.244240625  (sidebar) target ÷ context = result
“THE ALGORITHM” header {    width: 60.546875%  /* 620 / 1024 */ } nav {    width: 35.15625%  /* 360 / 1024 */ }
 
“THE ALGORITHM” target ÷ context = result
SETTING MARGINS & PADDINGS If the next TYPE element is 11px & is nested within the H1 then use the following 11 / 24 = 0.458333333333333em When setting flexible margins on an element, your context is the width of the element’s container. When setting flexible padding on an element, your context is the width of the element itself. Which makes sense, if you think about the box model: we’re describing the padding in relation to the width of the box itself. DO NOT  ROUND UP. DO NOT  ROUND UP.
Flexible Grid Based Layout
THREE INGREDIENTS A flexible, grid-based layout Flexible images and media Media queries - a module from the CSS3 specification
THREE INGREDIENTS A flexible, grid-based layout Flexible images and media Media queries - a module from the CSS3 specification
Flexible Images / Media Web is not just text Facebook Flickr YouTube Vimeo more more more.....
 
Golden Egg img { max-width: 100%;   }
Golden Egg cont... img,embed,object,video { max-width: 100%; }
IE6 - you bastard! img,embed,object,video { max-width: 100%; }
IE6 - you bastard! IE Specific Style Sheet img {       width: 100%; }
IE7 - you bastard! http://unstoppablerobotninja.com/entry/fluid-images#code
Background Images FAUX columns But that's fine for a fixed layout, but what about our responsive design? .blog { background: #F8F5F2 url("blog-bg.png") repeat-y 50% 0; }
Background Images CSS3 property called background-size ( http://bkaprt.com/rwd/20/ ), browser support is still pretty immature Scott Robbin’s jQuery Backstretch plugin ( http://bkaprt.com/rwd/21/ ) simulates resizable background images on the body element.
THREE INGREDIENTS A flexible, grid-based layout Flexible images and media Media queries - a module from the CSS3 specification
THREE INGREDIENTS A flexible, grid-based layout Flexible images and media Media queries - a module from the CSS3 specification
Media Queries W3C Media Types all, braille, embossed, handheld, print, projection, screen, speech, tty, and tv
Media Types <link rel=&quot;stylesheet&quot; href=&quot;global.css&quot; media=&quot;all&quot; /> <link rel=&quot;stylesheet&quot; href=&quot;main.css&quot; media=&quot;screen&quot; /> <link rel=&quot;stylesheet&quot; href=&quot;paper.css&quot; media=&quot;print&quot; />
Then along came... <link rel=&quot;stylesheet&quot; href=&quot;tiny.css&quot; media=&quot;handheld&quot;/>
Be GONE Media Types Hel lo  Media Queries Media Queries Media Queries
CSS3 Media Queries Anatomy of a Media Query @media screen and (min-width: 1024px) { body { font-size: 100%; }}
Anatomy of Media Query Each query still begins with a media type (screen). Immediately after comes the query itself, wrapped in parentheses: (min-width: 1024px).  And our query can, in turn, be split into two components: the name of a feature (min-width) and a corresponding value (1024px)
CSS3 Media Queries Anatomy of a Media Query @media screen and (min-width: 1024px) { body { font-size: 100%; }}
Where did I put..... <link rel=&quot;stylesheet&quot; href=&quot;wide.css&quot; media=&quot;screen and (min-width: 1024px)&quot; /> Attach them to @import statements: @import url(&quot;wide.css&quot;) screen and (min-width: 1024px); I prefer @media because it keeps the CSS sheet numbers down, there for requests and there for load times.
Does Size Matter?
YES!!!
Does Size Matter In the spec’s language, every device has a “display area” and “rendering surface.”  the browser’s viewport is the display area; the entire display is the rendering surface.  So on your laptop, the display area would be your browser window; the rendering surface would be your screen.
Does Size Matter If your laptop is 1200px in width and your browser is open 50% of the screen, then; RENDERING SURFACE = 1200px  DISPLAY AREA (viewport) = 600px http://www.w3.org/TR/css3-mediaqueries/#media1
WAIT - There’s MOAR Chain multiple conditions together @media screen and (min-device-width: 480px) and (orientation: landscape) { … }
Media Queries
Browser Support Works in most browers < 5 years old With the obvious exception of IE css3-mediaqueries.js respond.js
respond.js @media screen and (max-width: 768px) { … }/*/mediaquery*/ @media screen and (max-width: 520px) { … }/*/mediaquery*/
Responsive Context
MOBILE FIRST “ More often than not, the mobile experience for a Web application or site is designed and built after the PC version is complete. Here's three reasons why Web applications should be designed for  mobile first  instead... Mobile is exploding... Mobile forces you to focus.... Mobile extends your capabilities... ” http://www.lukew.com/ff/entry.asp?933
Image  http://blog.gvnfoundation.org/2011/02/every-once-in-awhile-we-receive-amazing.html
Testing No Substitute for the real thing Web Developer Tools (FF Plugin) Safari Developer Emulators
Bad Points? Force the users into one way.  Users that like to pinch and zoom No Mobile Only, users will download the WHOLE page not an optimised one
Thanks.  Questions? “ The Way is shaped by use,But then the shape is lost.Do not hold fast to shapesBut let sensation flow into the worldAs a river courses down to the sea.—DAO DE JING, section 32, “Shapes”

More Related Content

What's hot

JavaScript
JavaScriptJavaScript
JavaScript
Vidyut Singhania
 
Making Your Own CSS Framework
Making Your Own CSS FrameworkMaking Your Own CSS Framework
Making Your Own CSS Framework
Dan Sagisser
 
Responsive Web Design: Clever Tips and Techniques
Responsive Web Design: Clever Tips and TechniquesResponsive Web Design: Clever Tips and Techniques
Responsive Web Design: Clever Tips and Techniques
Vitaly Friedman
 
Controlling Web Typography
Controlling Web TypographyControlling Web Typography
Controlling Web Typography
Trent Walton
 
Responsive Web Design
Responsive Web DesignResponsive Web Design
Responsive Web Design
Debra Shapiro
 
Responsive Design Tools & Resources
Responsive Design Tools & ResourcesResponsive Design Tools & Resources
Responsive Design Tools & Resources
Clarissa Peterson
 
Responsive web designing ppt(1)
Responsive web designing ppt(1)Responsive web designing ppt(1)
Responsive web designing ppt(1)
admecindia1
 
Introduction to Responsive Web Design
Introduction to Responsive Web DesignIntroduction to Responsive Web Design
Introduction to Responsive Web Design
Shawn Calvert
 
Responsive Web Design for Universal Access 2016
Responsive Web Design for Universal Access 2016Responsive Web Design for Universal Access 2016
Responsive Web Design for Universal Access 2016
Kate Walser
 
Adobe MAX 2008: HTML/CSS + Fireworks
Adobe MAX 2008: HTML/CSS + FireworksAdobe MAX 2008: HTML/CSS + Fireworks
Adobe MAX 2008: HTML/CSS + Fireworks
Nathan Smith
 
Organize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS TricksOrganize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS Tricks
Andolasoft Inc
 
Bootstrap for Beginners
Bootstrap for BeginnersBootstrap for Beginners
Bootstrap for Beginners
D'arce Hess
 
Hooray Icon Fonts! Artifact Conference
Hooray Icon Fonts! Artifact ConferenceHooray Icon Fonts! Artifact Conference
Hooray Icon Fonts! Artifact Conference
jameswillweb
 
Hooray Icon Fonts workshop
Hooray Icon Fonts workshopHooray Icon Fonts workshop
Hooray Icon Fonts workshop
jameswillweb
 
Responsive Web Design (April 18th, Los Angeles)
Responsive Web Design (April 18th, Los Angeles)Responsive Web Design (April 18th, Los Angeles)
Responsive Web Design (April 18th, Los Angeles)
Thinkful
 
Elegant Web Typography
Elegant Web TypographyElegant Web Typography
Elegant Web Typography
jeff_croft
 
Aside, within HTML5 + CSS
Aside, within HTML5 + CSSAside, within HTML5 + CSS
Aside, within HTML5 + CSS
GooseAndSqurirrel
 
Building a Website from Planning to Photoshop Mockup to HTML/CSS
Building a Website from Planning to Photoshop Mockup to HTML/CSSBuilding a Website from Planning to Photoshop Mockup to HTML/CSS
Building a Website from Planning to Photoshop Mockup to HTML/CSS
hstryk
 
Responsive Web Design - NYC Webgrrls
Responsive Web Design - NYC WebgrrlsResponsive Web Design - NYC Webgrrls
Responsive Web Design - NYC Webgrrls
Amelie Walker-Yung
 
Lecture4
Lecture4Lecture4
Lecture4
hstryk
 

What's hot (20)

JavaScript
JavaScriptJavaScript
JavaScript
 
Making Your Own CSS Framework
Making Your Own CSS FrameworkMaking Your Own CSS Framework
Making Your Own CSS Framework
 
Responsive Web Design: Clever Tips and Techniques
Responsive Web Design: Clever Tips and TechniquesResponsive Web Design: Clever Tips and Techniques
Responsive Web Design: Clever Tips and Techniques
 
Controlling Web Typography
Controlling Web TypographyControlling Web Typography
Controlling Web Typography
 
Responsive Web Design
Responsive Web DesignResponsive Web Design
Responsive Web Design
 
Responsive Design Tools & Resources
Responsive Design Tools & ResourcesResponsive Design Tools & Resources
Responsive Design Tools & Resources
 
Responsive web designing ppt(1)
Responsive web designing ppt(1)Responsive web designing ppt(1)
Responsive web designing ppt(1)
 
Introduction to Responsive Web Design
Introduction to Responsive Web DesignIntroduction to Responsive Web Design
Introduction to Responsive Web Design
 
Responsive Web Design for Universal Access 2016
Responsive Web Design for Universal Access 2016Responsive Web Design for Universal Access 2016
Responsive Web Design for Universal Access 2016
 
Adobe MAX 2008: HTML/CSS + Fireworks
Adobe MAX 2008: HTML/CSS + FireworksAdobe MAX 2008: HTML/CSS + Fireworks
Adobe MAX 2008: HTML/CSS + Fireworks
 
Organize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS TricksOrganize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS Tricks
 
Bootstrap for Beginners
Bootstrap for BeginnersBootstrap for Beginners
Bootstrap for Beginners
 
Hooray Icon Fonts! Artifact Conference
Hooray Icon Fonts! Artifact ConferenceHooray Icon Fonts! Artifact Conference
Hooray Icon Fonts! Artifact Conference
 
Hooray Icon Fonts workshop
Hooray Icon Fonts workshopHooray Icon Fonts workshop
Hooray Icon Fonts workshop
 
Responsive Web Design (April 18th, Los Angeles)
Responsive Web Design (April 18th, Los Angeles)Responsive Web Design (April 18th, Los Angeles)
Responsive Web Design (April 18th, Los Angeles)
 
Elegant Web Typography
Elegant Web TypographyElegant Web Typography
Elegant Web Typography
 
Aside, within HTML5 + CSS
Aside, within HTML5 + CSSAside, within HTML5 + CSS
Aside, within HTML5 + CSS
 
Building a Website from Planning to Photoshop Mockup to HTML/CSS
Building a Website from Planning to Photoshop Mockup to HTML/CSSBuilding a Website from Planning to Photoshop Mockup to HTML/CSS
Building a Website from Planning to Photoshop Mockup to HTML/CSS
 
Responsive Web Design - NYC Webgrrls
Responsive Web Design - NYC WebgrrlsResponsive Web Design - NYC Webgrrls
Responsive Web Design - NYC Webgrrls
 
Lecture4
Lecture4Lecture4
Lecture4
 

Viewers also liked

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
jameswillweb
 
CSS3 Media Queries
CSS3 Media QueriesCSS3 Media Queries
CSS3 Media Queries
Russ Weakley
 
Developing a Progressive Mobile Strategy
Developing a Progressive Mobile StrategyDeveloping a Progressive Mobile Strategy
Developing a Progressive Mobile Strategy
Dave Olsen
 
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
ambientphoto
 
CSS3 Media Queries And Creating Adaptive Layouts
CSS3 Media Queries And Creating Adaptive LayoutsCSS3 Media Queries And Creating Adaptive Layouts
CSS3 Media Queries And Creating Adaptive Layouts
Svitlana Ivanytska
 
Meta layout: a closer look at media queries
Meta layout: a closer look at media queriesMeta layout: a closer look at media queries
Meta layout: a closer look at media queries
Stephen Hay
 
Real-world Responsive Design @ Breaking Development 2011
Real-world Responsive Design @ Breaking Development 2011Real-world Responsive Design @ Breaking Development 2011
Real-world Responsive Design @ Breaking Development 2011
Stephen Hay
 
Prototype & Test - Design Thinking
Prototype & Test - Design ThinkingPrototype & Test - Design Thinking
Prototype & Test - Design Thinking
amaneirom
 
Sns와 관계
Sns와 관계Sns와 관계
Sns와 관계
daniellynn
 
Color, themes, fonts: The building blocks of good e-commerce and ui design
Color, themes, fonts: The building blocks of good e-commerce and ui designColor, themes, fonts: The building blocks of good e-commerce and ui design
Color, themes, fonts: The building blocks of good e-commerce and ui design
Josh Levine
 
Industrial Design fundamental in User Experience Design
Industrial Design fundamental in User Experience Design Industrial Design fundamental in User Experience Design
Industrial Design fundamental in User Experience Design
bouchardr
 
Design Fundamentals for Developers
Design Fundamentals for DevelopersDesign Fundamentals for Developers
Design Fundamentals for Developers
paultrani
 
인터랙티브미디어디자인 장소앱 프로토
인터랙티브미디어디자인 장소앱 프로토인터랙티브미디어디자인 장소앱 프로토
인터랙티브미디어디자인 장소앱 프로토
eunbin119
 
Interactive Media Design 1
Interactive Media Design 1Interactive Media Design 1
Interactive Media Design 1
Yeji Shin
 
VDIS10021 Working in Digital Design - Lecture 4 - Digital Colour Management
VDIS10021 Working in Digital Design - Lecture 4 - Digital Colour ManagementVDIS10021 Working in Digital Design - Lecture 4 - Digital Colour Management
VDIS10021 Working in Digital Design - Lecture 4 - Digital Colour Management
Virtu Institute
 
A Guide to Using Color Effectively
A Guide to Using Color EffectivelyA Guide to Using Color Effectively
우리나라 방방곡곡 사용자분석
우리나라 방방곡곡 사용자분석우리나라 방방곡곡 사용자분석
우리나라 방방곡곡 사용자분석
Eun Ju Chang
 
Responsive Color
Responsive ColorResponsive Color
Responsive Color
Clarissa Peterson
 
Responsive Design Workshop
Responsive Design WorkshopResponsive Design Workshop
Responsive Design Workshop
Clarissa Peterson
 

Viewers also liked (20)

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
 
CSS3 Media Queries
CSS3 Media QueriesCSS3 Media Queries
CSS3 Media Queries
 
Developing a Progressive Mobile Strategy
Developing a Progressive Mobile StrategyDeveloping a Progressive Mobile Strategy
Developing a Progressive Mobile Strategy
 
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
 
CSS3 Media Queries And Creating Adaptive Layouts
CSS3 Media Queries And Creating Adaptive LayoutsCSS3 Media Queries And Creating Adaptive Layouts
CSS3 Media Queries And Creating Adaptive Layouts
 
Meta layout: a closer look at media queries
Meta layout: a closer look at media queriesMeta layout: a closer look at media queries
Meta layout: a closer look at media queries
 
Real-world Responsive Design @ Breaking Development 2011
Real-world Responsive Design @ Breaking Development 2011Real-world Responsive Design @ Breaking Development 2011
Real-world Responsive Design @ Breaking Development 2011
 
Prototype & Test - Design Thinking
Prototype & Test - Design ThinkingPrototype & Test - Design Thinking
Prototype & Test - Design Thinking
 
Sns와 관계
Sns와 관계Sns와 관계
Sns와 관계
 
중간점검
중간점검중간점검
중간점검
 
Color, themes, fonts: The building blocks of good e-commerce and ui design
Color, themes, fonts: The building blocks of good e-commerce and ui designColor, themes, fonts: The building blocks of good e-commerce and ui design
Color, themes, fonts: The building blocks of good e-commerce and ui design
 
Industrial Design fundamental in User Experience Design
Industrial Design fundamental in User Experience Design Industrial Design fundamental in User Experience Design
Industrial Design fundamental in User Experience Design
 
Design Fundamentals for Developers
Design Fundamentals for DevelopersDesign Fundamentals for Developers
Design Fundamentals for Developers
 
인터랙티브미디어디자인 장소앱 프로토
인터랙티브미디어디자인 장소앱 프로토인터랙티브미디어디자인 장소앱 프로토
인터랙티브미디어디자인 장소앱 프로토
 
Interactive Media Design 1
Interactive Media Design 1Interactive Media Design 1
Interactive Media Design 1
 
VDIS10021 Working in Digital Design - Lecture 4 - Digital Colour Management
VDIS10021 Working in Digital Design - Lecture 4 - Digital Colour ManagementVDIS10021 Working in Digital Design - Lecture 4 - Digital Colour Management
VDIS10021 Working in Digital Design - Lecture 4 - Digital Colour Management
 
A Guide to Using Color Effectively
A Guide to Using Color EffectivelyA Guide to Using Color Effectively
A Guide to Using Color Effectively
 
우리나라 방방곡곡 사용자분석
우리나라 방방곡곡 사용자분석우리나라 방방곡곡 사용자분석
우리나라 방방곡곡 사용자분석
 
Responsive Color
Responsive ColorResponsive Color
Responsive Color
 
Responsive Design Workshop
Responsive Design WorkshopResponsive Design Workshop
Responsive Design Workshop
 

Similar to Responsive Web Design

Responsive web design
Responsive web designResponsive web design
Responsive web design
Ben MacNeill
 
Responsive Web design _2013
Responsive Web design _2013 Responsive Web design _2013
Responsive Web design _2013
Suresh B
 
responsive web design 1_oct_2013
responsive web design  1_oct_2013 responsive web design  1_oct_2013
responsive web design 1_oct_2013
Suresh B
 
responsive web design
responsive web designresponsive web design
responsive web design
Suresh B
 
Rwd ppt
Rwd pptRwd ppt
Rwd ppt
Suresh B
 
Developing for Responsive Design - Frederic Welterlin
Developing for Responsive Design - Frederic WelterlinDeveloping for Responsive Design - Frederic Welterlin
Developing for Responsive Design - Frederic Welterlin
Razorfish
 
Great Responsive-ability Web Design
Great Responsive-ability Web DesignGreat Responsive-ability Web Design
Great Responsive-ability Web Design
Mike Wilcox
 
Advancio, Inc. Academy: Responsive Web Design
Advancio, Inc. Academy: Responsive Web DesignAdvancio, Inc. Academy: Responsive Web Design
Advancio, Inc. Academy: Responsive Web Design
Advancio
 
Responsive webdesign WordCampNL 2012
Responsive webdesign WordCampNL 2012Responsive webdesign WordCampNL 2012
Responsive webdesign WordCampNL 2012
Tom Hermans
 
The specs behind the sex, mobile-friendly layout beyond the desktop
The specs behind the sex, mobile-friendly layout beyond the desktopThe specs behind the sex, mobile-friendly layout beyond the desktop
The specs behind the sex, mobile-friendly layout beyond the desktop
betabeers
 
Adaptive layouts - standards>next Manchester 23.03.2011
Adaptive layouts - standards>next Manchester 23.03.2011Adaptive layouts - standards>next Manchester 23.03.2011
Adaptive layouts - standards>next Manchester 23.03.2011
Patrick Lauke
 
Mobile Monday Presentation: Responsive Web Design
Mobile Monday Presentation: Responsive Web DesignMobile Monday Presentation: Responsive Web Design
Mobile Monday Presentation: Responsive Web Design
Cantina
 
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
Lizzie Hodgson
 
Responsive Web Design for Universal Access
Responsive Web Design for Universal AccessResponsive Web Design for Universal Access
Responsive Web Design for Universal Access
Kate Walser
 
Design
DesignDesign
Responsive Web Design, get the best out of your designs - JavaScript Open Day...
Responsive Web Design, get the best out of your designs - JavaScript Open Day...Responsive Web Design, get the best out of your designs - JavaScript Open Day...
Responsive Web Design, get the best out of your designs - JavaScript Open Day...
Frédéric Harper
 
Bootstrap 3
Bootstrap 3Bootstrap 3
Bootstrap 3
McSoftsis
 
"Responsive Web Design: Clever Tips and Techniques". Vitaly Friedman, Smashin...
"Responsive Web Design: Clever Tips and Techniques". Vitaly Friedman, Smashin..."Responsive Web Design: Clever Tips and Techniques". Vitaly Friedman, Smashin...
"Responsive Web Design: Clever Tips and Techniques". Vitaly Friedman, Smashin...
Yandex
 
Responsive Websites
Responsive WebsitesResponsive Websites
Responsive Websites
Joe Seifi
 
Introduction to Responsive Design v.2
Introduction to Responsive Design v.2Introduction to Responsive Design v.2
Introduction to Responsive Design v.2
Clarissa Peterson
 

Similar to Responsive Web Design (20)

Responsive web design
Responsive web designResponsive web design
Responsive web design
 
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
 
responsive web design
responsive web designresponsive web design
responsive web design
 
Rwd ppt
Rwd pptRwd ppt
Rwd ppt
 
Developing for Responsive Design - Frederic Welterlin
Developing for Responsive Design - Frederic WelterlinDeveloping for Responsive Design - Frederic Welterlin
Developing for Responsive Design - Frederic Welterlin
 
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 webdesign WordCampNL 2012
Responsive webdesign WordCampNL 2012Responsive webdesign WordCampNL 2012
Responsive webdesign WordCampNL 2012
 
The specs behind the sex, mobile-friendly layout beyond the desktop
The specs behind the sex, mobile-friendly layout beyond the desktopThe specs behind the sex, mobile-friendly layout beyond the desktop
The specs behind the sex, mobile-friendly layout beyond the desktop
 
Adaptive layouts - standards>next Manchester 23.03.2011
Adaptive layouts - standards>next Manchester 23.03.2011Adaptive layouts - standards>next Manchester 23.03.2011
Adaptive layouts - standards>next Manchester 23.03.2011
 
Mobile Monday Presentation: Responsive Web Design
Mobile Monday Presentation: Responsive Web DesignMobile Monday Presentation: Responsive Web Design
Mobile Monday Presentation: Responsive Web Design
 
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
 
Responsive Web Design for Universal Access
Responsive Web Design for Universal AccessResponsive Web Design for Universal Access
Responsive Web Design for Universal Access
 
Design
DesignDesign
Design
 
Responsive Web Design, get the best out of your designs - JavaScript Open Day...
Responsive Web Design, get the best out of your designs - JavaScript Open Day...Responsive Web Design, get the best out of your designs - JavaScript Open Day...
Responsive Web Design, get the best out of your designs - JavaScript Open Day...
 
Bootstrap 3
Bootstrap 3Bootstrap 3
Bootstrap 3
 
"Responsive Web Design: Clever Tips and Techniques". Vitaly Friedman, Smashin...
"Responsive Web Design: Clever Tips and Techniques". Vitaly Friedman, Smashin..."Responsive Web Design: Clever Tips and Techniques". Vitaly Friedman, Smashin...
"Responsive Web Design: Clever Tips and Techniques". Vitaly Friedman, Smashin...
 
Responsive Websites
Responsive WebsitesResponsive Websites
Responsive Websites
 
Introduction to Responsive Design v.2
Introduction to Responsive Design v.2Introduction to Responsive Design v.2
Introduction to Responsive Design v.2
 

Recently uploaded

Password Rotation in 2024 is still Relevant
Password Rotation in 2024 is still RelevantPassword Rotation in 2024 is still Relevant
Password Rotation in 2024 is still Relevant
Bert Blevins
 
20240702 QFM021 Machine Intelligence Reading List June 2024
20240702 QFM021 Machine Intelligence Reading List June 202420240702 QFM021 Machine Intelligence Reading List June 2024
20240702 QFM021 Machine Intelligence Reading List June 2024
Matthew Sinclair
 
INDIAN AIR FORCE FIGHTER PLANES LIST.pdf
INDIAN AIR FORCE FIGHTER PLANES LIST.pdfINDIAN AIR FORCE FIGHTER PLANES LIST.pdf
INDIAN AIR FORCE FIGHTER PLANES LIST.pdf
jackson110191
 
20240704 QFM023 Engineering Leadership Reading List June 2024
20240704 QFM023 Engineering Leadership Reading List June 202420240704 QFM023 Engineering Leadership Reading List June 2024
20240704 QFM023 Engineering Leadership Reading List June 2024
Matthew Sinclair
 
Active Inference is a veryyyyyyyyyyyyyyyyyyyyyyyy
Active Inference is a veryyyyyyyyyyyyyyyyyyyyyyyyActive Inference is a veryyyyyyyyyyyyyyyyyyyyyyyy
Active Inference is a veryyyyyyyyyyyyyyyyyyyyyyyy
RaminGhanbari2
 
Mitigating the Impact of State Management in Cloud Stream Processing Systems
Mitigating the Impact of State Management in Cloud Stream Processing SystemsMitigating the Impact of State Management in Cloud Stream Processing Systems
Mitigating the Impact of State Management in Cloud Stream Processing Systems
ScyllaDB
 
20240705 QFM024 Irresponsible AI Reading List June 2024
20240705 QFM024 Irresponsible AI Reading List June 202420240705 QFM024 Irresponsible AI Reading List June 2024
20240705 QFM024 Irresponsible AI Reading List June 2024
Matthew Sinclair
 
Calgary MuleSoft Meetup APM and IDP .pptx
Calgary MuleSoft Meetup APM and IDP .pptxCalgary MuleSoft Meetup APM and IDP .pptx
Calgary MuleSoft Meetup APM and IDP .pptx
ishalveerrandhawa1
 
Best Practices for Effectively Running dbt in Airflow.pdf
Best Practices for Effectively Running dbt in Airflow.pdfBest Practices for Effectively Running dbt in Airflow.pdf
Best Practices for Effectively Running dbt in Airflow.pdf
Tatiana Al-Chueyr
 
BLOCKCHAIN FOR DUMMIES: GUIDEBOOK FOR ALL
BLOCKCHAIN FOR DUMMIES: GUIDEBOOK FOR ALLBLOCKCHAIN FOR DUMMIES: GUIDEBOOK FOR ALL
BLOCKCHAIN FOR DUMMIES: GUIDEBOOK FOR ALL
Liveplex
 
Cookies program to display the information though cookie creation
Cookies program to display the information though cookie creationCookies program to display the information though cookie creation
Cookies program to display the information though cookie creation
shanthidl1
 
Best Programming Language for Civil Engineers
Best Programming Language for Civil EngineersBest Programming Language for Civil Engineers
Best Programming Language for Civil Engineers
Awais Yaseen
 
7 Most Powerful Solar Storms in the History of Earth.pdf
7 Most Powerful Solar Storms in the History of Earth.pdf7 Most Powerful Solar Storms in the History of Earth.pdf
7 Most Powerful Solar Storms in the History of Earth.pdf
Enterprise Wired
 
Comparison Table of DiskWarrior Alternatives.pdf
Comparison Table of DiskWarrior Alternatives.pdfComparison Table of DiskWarrior Alternatives.pdf
Comparison Table of DiskWarrior Alternatives.pdf
Andrey Yasko
 
Recent Advancements in the NIST-JARVIS Infrastructure
Recent Advancements in the NIST-JARVIS InfrastructureRecent Advancements in the NIST-JARVIS Infrastructure
Recent Advancements in the NIST-JARVIS Infrastructure
KAMAL CHOUDHARY
 
Understanding Insider Security Threats: Types, Examples, Effects, and Mitigat...
Understanding Insider Security Threats: Types, Examples, Effects, and Mitigat...Understanding Insider Security Threats: Types, Examples, Effects, and Mitigat...
Understanding Insider Security Threats: Types, Examples, Effects, and Mitigat...
Bert Blevins
 
find out more about the role of autonomous vehicles in facing global challenges
find out more about the role of autonomous vehicles in facing global challengesfind out more about the role of autonomous vehicles in facing global challenges
find out more about the role of autonomous vehicles in facing global challenges
huseindihon
 
Advanced Techniques for Cyber Security Analysis and Anomaly Detection
Advanced Techniques for Cyber Security Analysis and Anomaly DetectionAdvanced Techniques for Cyber Security Analysis and Anomaly Detection
Advanced Techniques for Cyber Security Analysis and Anomaly Detection
Bert Blevins
 
Measuring the Impact of Network Latency at Twitter
Measuring the Impact of Network Latency at TwitterMeasuring the Impact of Network Latency at Twitter
Measuring the Impact of Network Latency at Twitter
ScyllaDB
 
How Social Media Hackers Help You to See Your Wife's Message.pdf
How Social Media Hackers Help You to See Your Wife's Message.pdfHow Social Media Hackers Help You to See Your Wife's Message.pdf
How Social Media Hackers Help You to See Your Wife's Message.pdf
HackersList
 

Recently uploaded (20)

Password Rotation in 2024 is still Relevant
Password Rotation in 2024 is still RelevantPassword Rotation in 2024 is still Relevant
Password Rotation in 2024 is still Relevant
 
20240702 QFM021 Machine Intelligence Reading List June 2024
20240702 QFM021 Machine Intelligence Reading List June 202420240702 QFM021 Machine Intelligence Reading List June 2024
20240702 QFM021 Machine Intelligence Reading List June 2024
 
INDIAN AIR FORCE FIGHTER PLANES LIST.pdf
INDIAN AIR FORCE FIGHTER PLANES LIST.pdfINDIAN AIR FORCE FIGHTER PLANES LIST.pdf
INDIAN AIR FORCE FIGHTER PLANES LIST.pdf
 
20240704 QFM023 Engineering Leadership Reading List June 2024
20240704 QFM023 Engineering Leadership Reading List June 202420240704 QFM023 Engineering Leadership Reading List June 2024
20240704 QFM023 Engineering Leadership Reading List June 2024
 
Active Inference is a veryyyyyyyyyyyyyyyyyyyyyyyy
Active Inference is a veryyyyyyyyyyyyyyyyyyyyyyyyActive Inference is a veryyyyyyyyyyyyyyyyyyyyyyyy
Active Inference is a veryyyyyyyyyyyyyyyyyyyyyyyy
 
Mitigating the Impact of State Management in Cloud Stream Processing Systems
Mitigating the Impact of State Management in Cloud Stream Processing SystemsMitigating the Impact of State Management in Cloud Stream Processing Systems
Mitigating the Impact of State Management in Cloud Stream Processing Systems
 
20240705 QFM024 Irresponsible AI Reading List June 2024
20240705 QFM024 Irresponsible AI Reading List June 202420240705 QFM024 Irresponsible AI Reading List June 2024
20240705 QFM024 Irresponsible AI Reading List June 2024
 
Calgary MuleSoft Meetup APM and IDP .pptx
Calgary MuleSoft Meetup APM and IDP .pptxCalgary MuleSoft Meetup APM and IDP .pptx
Calgary MuleSoft Meetup APM and IDP .pptx
 
Best Practices for Effectively Running dbt in Airflow.pdf
Best Practices for Effectively Running dbt in Airflow.pdfBest Practices for Effectively Running dbt in Airflow.pdf
Best Practices for Effectively Running dbt in Airflow.pdf
 
BLOCKCHAIN FOR DUMMIES: GUIDEBOOK FOR ALL
BLOCKCHAIN FOR DUMMIES: GUIDEBOOK FOR ALLBLOCKCHAIN FOR DUMMIES: GUIDEBOOK FOR ALL
BLOCKCHAIN FOR DUMMIES: GUIDEBOOK FOR ALL
 
Cookies program to display the information though cookie creation
Cookies program to display the information though cookie creationCookies program to display the information though cookie creation
Cookies program to display the information though cookie creation
 
Best Programming Language for Civil Engineers
Best Programming Language for Civil EngineersBest Programming Language for Civil Engineers
Best Programming Language for Civil Engineers
 
7 Most Powerful Solar Storms in the History of Earth.pdf
7 Most Powerful Solar Storms in the History of Earth.pdf7 Most Powerful Solar Storms in the History of Earth.pdf
7 Most Powerful Solar Storms in the History of Earth.pdf
 
Comparison Table of DiskWarrior Alternatives.pdf
Comparison Table of DiskWarrior Alternatives.pdfComparison Table of DiskWarrior Alternatives.pdf
Comparison Table of DiskWarrior Alternatives.pdf
 
Recent Advancements in the NIST-JARVIS Infrastructure
Recent Advancements in the NIST-JARVIS InfrastructureRecent Advancements in the NIST-JARVIS Infrastructure
Recent Advancements in the NIST-JARVIS Infrastructure
 
Understanding Insider Security Threats: Types, Examples, Effects, and Mitigat...
Understanding Insider Security Threats: Types, Examples, Effects, and Mitigat...Understanding Insider Security Threats: Types, Examples, Effects, and Mitigat...
Understanding Insider Security Threats: Types, Examples, Effects, and Mitigat...
 
find out more about the role of autonomous vehicles in facing global challenges
find out more about the role of autonomous vehicles in facing global challengesfind out more about the role of autonomous vehicles in facing global challenges
find out more about the role of autonomous vehicles in facing global challenges
 
Advanced Techniques for Cyber Security Analysis and Anomaly Detection
Advanced Techniques for Cyber Security Analysis and Anomaly DetectionAdvanced Techniques for Cyber Security Analysis and Anomaly Detection
Advanced Techniques for Cyber Security Analysis and Anomaly Detection
 
Measuring the Impact of Network Latency at Twitter
Measuring the Impact of Network Latency at TwitterMeasuring the Impact of Network Latency at Twitter
Measuring the Impact of Network Latency at Twitter
 
How Social Media Hackers Help You to See Your Wife's Message.pdf
How Social Media Hackers Help You to See Your Wife's Message.pdfHow Social Media Hackers Help You to See Your Wife's Message.pdf
How Social Media Hackers Help You to See Your Wife's Message.pdf
 

Responsive Web Design

  • 1. Responsive Web Design “ The Way is shaped by use,But then the shape is lost.Do not hold fast to shapesBut let sensation flow into the worldAs a river courses down to the sea.—DAO DE JING, section 32, “Shapes”
  • 2. Resources Ethan Marcotte - Responsive Web Design (A Book Apart) Smashing Magazine - ( http://coding.smashingmagazine.com/2011/01/12/guidelines-for-responsive-web-design/ ) A Dao of Web Design ( http://www.alistapart.com/articles/dao/ )
  • 3. What is responsive web design?
  • 4.  
  • 5.  
  • 6.  
  • 7.  
  • 8.  
  • 9.  
  • 10.  
  • 11.  
  • 12.  
  • 13.  
  • 16. THREE INGREDIENTS A flexible, grid-based layout Flexible images and media Media queries - a module from the CSS3 specification
  • 17. THREE INGREDIENTS A flexible, grid-based layout
  • 19. Flexible - Step 1 Typography
  • 20. The following slides contain maths
  • 21. “THE ALGORITHM” target ÷ context = result
  • 22. “THE ALGORITHM” target ÷ context = result 24px ÷ 16px = 1.5em
  • 23. Flexible - Step 1 Typography body { font-size: 100% } h1 { font-size: 1.5em /* 24px / 16px */ } h2 { font-size: 1.25em /* 20px / 16px */ }
  • 24. Flexible - Step 2 Typography Layout
  • 25. Flexible - Step 2 Typography Layout
  • 26. The following slides contain maths
  • 27. “THE ALGORITHM” target ÷ context = result
  • 29. “THE ALGORITHM” 620 ÷ 1024px = 0.60546875 (header) 360 ÷ 1024px = 0.3515625 (nav) 730 ÷ 1024px = 0.712890625 (article) 250 ÷ 1024px = 0.244240625 (sidebar) target ÷ context = result
  • 30. “THE ALGORITHM” header { width: 60.546875% /* 620 / 1024 */ } nav { width: 35.15625% /* 360 / 1024 */ }
  • 31.  
  • 32. “THE ALGORITHM” target ÷ context = result
  • 33. SETTING MARGINS & PADDINGS If the next TYPE element is 11px & is nested within the H1 then use the following 11 / 24 = 0.458333333333333em When setting flexible margins on an element, your context is the width of the element’s container. When setting flexible padding on an element, your context is the width of the element itself. Which makes sense, if you think about the box model: we’re describing the padding in relation to the width of the box itself. DO NOT ROUND UP. DO NOT ROUND UP.
  • 35. THREE INGREDIENTS A flexible, grid-based layout Flexible images and media Media queries - a module from the CSS3 specification
  • 36. THREE INGREDIENTS A flexible, grid-based layout Flexible images and media Media queries - a module from the CSS3 specification
  • 37. Flexible Images / Media Web is not just text Facebook Flickr YouTube Vimeo more more more.....
  • 38.  
  • 39. Golden Egg img { max-width: 100%; }
  • 40. Golden Egg cont... img,embed,object,video { max-width: 100%; }
  • 41. IE6 - you bastard! img,embed,object,video { max-width: 100%; }
  • 42. IE6 - you bastard! IE Specific Style Sheet img {       width: 100%; }
  • 43. IE7 - you bastard! http://unstoppablerobotninja.com/entry/fluid-images#code
  • 44. Background Images FAUX columns But that's fine for a fixed layout, but what about our responsive design? .blog { background: #F8F5F2 url(&quot;blog-bg.png&quot;) repeat-y 50% 0; }
  • 45. Background Images CSS3 property called background-size ( http://bkaprt.com/rwd/20/ ), browser support is still pretty immature Scott Robbin’s jQuery Backstretch plugin ( http://bkaprt.com/rwd/21/ ) simulates resizable background images on the body element.
  • 46. THREE INGREDIENTS A flexible, grid-based layout Flexible images and media Media queries - a module from the CSS3 specification
  • 47. THREE INGREDIENTS A flexible, grid-based layout Flexible images and media Media queries - a module from the CSS3 specification
  • 48. Media Queries W3C Media Types all, braille, embossed, handheld, print, projection, screen, speech, tty, and tv
  • 49. Media Types <link rel=&quot;stylesheet&quot; href=&quot;global.css&quot; media=&quot;all&quot; /> <link rel=&quot;stylesheet&quot; href=&quot;main.css&quot; media=&quot;screen&quot; /> <link rel=&quot;stylesheet&quot; href=&quot;paper.css&quot; media=&quot;print&quot; />
  • 50. Then along came... <link rel=&quot;stylesheet&quot; href=&quot;tiny.css&quot; media=&quot;handheld&quot;/>
  • 51. Be GONE Media Types Hel lo Media Queries Media Queries Media Queries
  • 52. CSS3 Media Queries Anatomy of a Media Query @media screen and (min-width: 1024px) { body { font-size: 100%; }}
  • 53. Anatomy of Media Query Each query still begins with a media type (screen). Immediately after comes the query itself, wrapped in parentheses: (min-width: 1024px). And our query can, in turn, be split into two components: the name of a feature (min-width) and a corresponding value (1024px)
  • 54. CSS3 Media Queries Anatomy of a Media Query @media screen and (min-width: 1024px) { body { font-size: 100%; }}
  • 55. Where did I put..... <link rel=&quot;stylesheet&quot; href=&quot;wide.css&quot; media=&quot;screen and (min-width: 1024px)&quot; /> Attach them to @import statements: @import url(&quot;wide.css&quot;) screen and (min-width: 1024px); I prefer @media because it keeps the CSS sheet numbers down, there for requests and there for load times.
  • 58. Does Size Matter In the spec’s language, every device has a “display area” and “rendering surface.” the browser’s viewport is the display area; the entire display is the rendering surface. So on your laptop, the display area would be your browser window; the rendering surface would be your screen.
  • 59. Does Size Matter If your laptop is 1200px in width and your browser is open 50% of the screen, then; RENDERING SURFACE = 1200px DISPLAY AREA (viewport) = 600px http://www.w3.org/TR/css3-mediaqueries/#media1
  • 60. WAIT - There’s MOAR Chain multiple conditions together @media screen and (min-device-width: 480px) and (orientation: landscape) { … }
  • 62. Browser Support Works in most browers < 5 years old With the obvious exception of IE css3-mediaqueries.js respond.js
  • 63. respond.js @media screen and (max-width: 768px) { … }/*/mediaquery*/ @media screen and (max-width: 520px) { … }/*/mediaquery*/
  • 65. MOBILE FIRST “ More often than not, the mobile experience for a Web application or site is designed and built after the PC version is complete. Here's three reasons why Web applications should be designed for mobile first instead... Mobile is exploding... Mobile forces you to focus.... Mobile extends your capabilities... ” http://www.lukew.com/ff/entry.asp?933
  • 67. Testing No Substitute for the real thing Web Developer Tools (FF Plugin) Safari Developer Emulators
  • 68. Bad Points? Force the users into one way. Users that like to pinch and zoom No Mobile Only, users will download the WHOLE page not an optimised one
  • 69. Thanks. Questions? “ The Way is shaped by use,But then the shape is lost.Do not hold fast to shapesBut let sensation flow into the worldAs a river courses down to the sea.—DAO DE JING, section 32, “Shapes”

Editor's Notes

  1. The Web is Young No History, very few best practices in comparison to other “artists”. Conditioned to think the way of the graphic designer, or artist. Will it be a canvas, paper, what are the dimensions. For graphic artists, they pick the same width and height, how big is the banner or show stand. More than often they will know exactly where their work is going to end up and use that as their starting point.
  2. We&apos;re conditioned to think the way of the graphic designer, or artist. When an artist starts a new piece of work he or she chooses very carefully. Will it be a canvas, paper, what are the dimensions. For graphic artists, they pick the same width and height, how big is the banner or show stand. More than often they will know exactly where their work is going to end up and use that as their starting point.
  3. We&apos;re conditioned to think the way of the graphic designer, or artist. When an artist starts a new piece of work he or she chooses very carefully. Will it be a canvas, paper, what are the dimensions. For graphic artists, they pick the same width and height, how big is the banner or show stand. More than often they will know exactly where their work is going to end up and use that as their starting point.
  4. Artists have their constraints. Constraints are good because they provide boundaries In Web Design we struggle with boundaries So we create our own.
  5. Start with no canvas We set the minimum width of the smallest monitor that we want to design for, probably 960 pixels because that also fits nicely into a grid. This gives us boundaries to begin building the site, because after all boundaries are great because the give us limitations and provide focus. Can you imagine the highway with no lines painted on the road? Or a game of football without markings on the pitch? Or houses without your allotted land parchment? The next time you start looking at designing a site.......
  6. Don’t do it! Don’t automatically on your next project go down that road. If we pick a canvas size we might be wrong.
  7. But what happens when that occurs and we get the dimensions wrong? We run the risk of the website being clipped and not showing the full extent of what ins supposed to be seen. (include a picture of a scene that has horizontal and vertical scroll bars).
  8. Mobile devices are increasing every day. We could look at browser sniffing but there’s a whole bunch of issues there - no js, sending incorrect request headers, overriding headers etc
  9. Shorten the list by focussing on widths instead of devices These will increase as well, but it’s easy to accomodate. SO WHAT GOES INTO DEVELOPING A RESPONSIVE WEB DESIGN?
  10. SO WHAT GOES INTO DEVELOPING A RESPONSIVE WEB DESIGN? Not as complicated as that looks.
  11. SO WHAT GOES INTO DEVELOPING A RESPONSIVE WEB DESIGN? Not as complicated as that looks.
  12. The first thing that we’re going to be doing is creating a flexible Grid based layout. Let’s take a look at our example file. http://dev.justinavery.me/design/fixed/
  13. 1024 px #container auto margin to center, some box shadow 620px Header 360px navigation 730px content 250px side bar numerous padding &amp; margins
  14. The reason we start here is because it doesn’t make our head hurt as much.
  15. The first thing that we’re going to be doing is creating a flexible Grid based layout. Let’s take a look at our example file. http://dev.justinavery.me/design/fixed/
  16. You will see this a lot. If you choose responsive design You will live and breathe this algorithm
  17. You will see this a lot. If you choose responsive design You will live and breathe this algorithm
  18. The default body size for browsers is 16px Set body to 100%, and base all typographical decisions from there. This is just typography, so ignore the layout aspects of padding and margins for now.
  19. Finish typography and start the Layout
  20. Same principal.
  21. The first thing that we’re going to be doing is creating a flexible Grid based layout. Let’s take a look at our example file. http://dev.justinavery.me/design/fixed/
  22. You will see this a lot. If you choose responsive design You will live and breathe this algorithm
  23. 1024 px #container auto margin to center, some box shadow (i’m going to pick an artibrary figure of 90% for this size because...... 620px Header 360px navigation 730px content 250px side bar numerous padding &amp; margins
  24. You will see this a lot. If you choose responsive design You will live and breathe this algorithm 360px navigation 730px content 250px side bar
  25. You will see this a lot. If you choose responsive design You will live and breathe this algorithm 360px navigation 730px content 250px side bar
  26. BE CAREFULL ABOUT THE CONTEXT
  27. The context may change throughout the document
  28. now before you round, don&apos;t. Browsers will round that themselves to a suitable size, so we want to give them as much information to make that computed change as possible.
  29. Go through all the measurements in the site and change them. Paddings. Margins. Widths. Sometimes Heights (height is difficult to have a context)
  30. Enter max-width: 100%;
  31. this rule allows our image to size to it&apos;s maximum size, or the width of the containing element... Which ever comes first. Remove the fixed width provided width= height=. this might fault.
  32. this rule allows our image to size to it&apos;s maximum size, or the width of the containing element... Which ever comes first.
  33. There are some issues with IE6 around the max-width. i.e. it doesn’t work exactly right Do some searches, read the Ethans book for more information.
  34. There are some issues with IE6 around the max-width. i.e. it doesn’t work exactly right Do some searches, read the Ethans book for more information.
  35. You do need to watch out for ie7 rendering image sizes however Simply download the script (available at http://bkaprt.com/rwd/16/ ) and include it on any page with flexible images; it will scour your document to create a series of flexible, high-quality AlphaImageLoader objects.
  36. Create a MASSIVE background image, and use the repeat-y “algorithm”
  37. There is a CSS3 property called background-size ( http://bkaprt.com/rwd/20/ ), which would allow us to create truly flexible background images, but—you guessed it—browser support is still pretty immatureScott Robbin’s jQuery Backstretch plugin ( http://bkaprt.com/rwd/21/ ) simulates resizable bac kground images on the body element.
  38. W3C had an idea Media Types came first These were the types you could choose
  39. The phones started getting smarter. Not much support for “handheld”, so phone browsers sent “screen” headers by default
  40. The phones started getting smarter. Not much support for “handheld”, so phone browsers sent “screen” headers by default
  41. Now, every media query—including the one above—has two components:1. Each query still begins with a media type (screen), drawn from the CSS 2.1 specification’s list of approved media types ( http://bkaprt.com/rwd/26/ ).2. Immediately after comes the query itself, wrapped in parentheses: (min-width: 1024px). And our query can, in turn, be split into two components: the name of a feature (min-width) and a corresponding value (1024px).
  42. Think of a media query like a test for your browser. When a browser reads your stylesheet, the Browser asks two questions: first, if it belongs to the screen media type; and if it does, if the browser’s viewport is at least 1024 pixels wide. If the browser meets both of those criteria, then the styles enclosed within the query are rendered; if not, the browser happily disregards the styles, and continues on its merry way.
  43. Explain slide. Now there can be some confusion over max-width, min-width, max-device-width etc So we get taken to the age old question.....
  44. DOES SIZE of the browser MATTER?
  45. DOES SIZE MATTER?
  46. Here are two quick guidelines that helped me sort it out: I won’t get into iphone 4 rendering more pixels from a display area than is available on the rendering surface though
  47. Visit this link for a list of queries that you can call with CSS3.
  48. WAIT - THERE&apos;S MOARChain conditions together so that you can even better target specifics such as width and orientation.@media screen and (min-device-width: 480px) and (orientation: landscape) { … }Be warned though, iPhone iPad example... Moral is test for specific devices, do not assume just because thou might be able.
  49. Lets take a closer look.
  50. css3-mediaqueries.js - explain it’s hefty and checks all parenthis next screen for respond.js
  51. very light weight and quick, but you’re still relying on JS
  52. getting away from the code for a whole I wanted to reflect on the application of responsive design. While responsive design is an amazing option for web developers to offer up different layouts and designs for different devices and sizes, it certainly is not the answer in every situation.You could easily code up an entirely two different sites in the HTML markup and set display:none; for the mobile version when viewed on desktop size screens, and switch them in the media queries. Possible, but not a great idea. You&apos;re making both users download a whole bunch of extra markup that simply doesn&apos;t matter, and that&apos;s just not cool. Uncool. UNCOOL!!!In these cases it&apos;s better to offer two completely separate solutions and rely on some server side of JavaScript based redirection.
  53. Don’t break a design down from the full size Build it linear to start with Forces you to prioritise content. In a linear environment there is no &amp;quot;this is as important as the that on&amp;quot; because there IS no equal. (insert a picture for the slide of a row of kids shortest to tallest).
  54. Don’t break a design down from the full size Build it linear to start with Forces you to prioritise content. In a linear environment there is no &amp;quot;this is as important as the that on&amp;quot; because there IS no equal. (insert a picture for the slide of a row of kids shortest to tallest).
  55. there is no substitute for testing on the actual devices, but if you don&apos;t have them then you can check out web developer tools. In fact, set them up as presets for you to push them through. All your business comes online, then buy devices
  56. Taking for granted what the user wants to see.