SlideShare a Scribd company logo
1




Responsive Web Design
Drupalcamp Copenhagen, September 25th 2011
2




The What
Current grid/layout
thinking and theory is
based on the notion of
there being a page to
work in from. There is
no page.



          Mark Boulton
4




What it really is
PRINT DESIGN     WEB DESIGN           RESPONSIVE




 214 x 110mm    1024 x 768px
 4-farve        Window, Mac, Linux       ?
 CMYK           IE, Safari, Firefox
5




The How
6



What you need
 §  Fluid Grid
 §  Flexible Images/Media
 §  Media Queries
7



From fixed grid to fluid grid
12 cols x 80px = The classic 960px grid




§  960px = 100%
§  80px = (80 / 960) * 100 = 8.33333333%

CSS:
.cols12{width:100%}!
.cols01{float:left;width:8.33333333%}!
.cols02{float:left;width:16.66666666%}!
.. And so on ..
8



Flexible Images/Media

                                         Image:
                                         •  140px wide – 10px margin
                                         •  But within a 4 column (320px) section




§  320px = 100%
§  140px = (140 / 320) * 100 = 43.75%
§  10px = (10 / 320) * 100 = 3.125%

CSS:
.cols04 img{float:left;max-width:43.75%;margin:3.125%}!
9




Media Queries
CSS:
@media screen and (max-width: 1024px){
   !.cols04 img{float:left;max-width:
43.75%;margin:3.125%}!
}!
!
!
!
@media screen and (min-width: 1024px){
   !.cols04 img{float:none;max-width:
93.75%;margin:3.125%}!
}!
!
HTML:
<meta name="viewport" content="width=device-
width, user-scalable=no, initial-scale=1.0,
minimum-scale=1.0, maximum-scale=1.0" />!
!
!
10




The Show
11




The Tips
12



Tips
 Fluid Grids
 §  Remember: It’s relative to the parent element
 §  Beware of subpixel rendering

 Flexible Images/Media
 §  Use AlphaImageLoader to improve image quality in IE-browsers
 §  Use fitvids.js for flexible video
 §  Serve different image sizes dependent on resolution

 Media Queries
 §  Go mobile content first
 §  Define your breakpoints early on and don’t overdo it
 §  IE6-8? Use respond.js (or don’t bother)
 §  Remember your <meta viewport ..> tag
13




The Links
14




The Links
The article: http://www.alistapart.com/articles/responsive-web-design/

The book: http://www.abookapart.com/products/responsive-web-design

The tweets: @beep @rwd @adactio @markboulton
15




The Who
16



Kim Johannesen
 §    Head of Design, Peytz & Co
 §    http://peytz.dk
 §    @peytz / @peytzdesign
 §    kjo@peytz.dk
 §    http://kimblim.dk
 §    @therealkimblim / @overflowhidden
The End

More Related Content

PDF
Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks
PDF
An Introduction to Responsive Design
PDF
Build with Express
PPTX
Woo commerce fundamentals
PPT
Over affix
PPTX
Migration Data at the Big Data InfoVis summer school
PDF
Relazione illustrativa gt29
PPTX
Family work freetime_study
Don’t get Bootslapped: How to Avoid Common Pitfalls with CSS Frameworks
An Introduction to Responsive Design
Build with Express
Woo commerce fundamentals
Over affix
Migration Data at the Big Data InfoVis summer school
Relazione illustrativa gt29
Family work freetime_study

Viewers also liked (15)

PDF
Visual Analysis and Historical Discovery
PPTX
Cups
PDF
Mapping Commodity Trading
PPTX
Social Networking: Visualizing Twitter
PPT
Verb patterns 8 c_revision and more
ODP
NASA Webserver Big Data InfoVis Summer School presentation
PDF
Guida tecnica 29
PDF
PPTX
Technology and alternate teaching methods for secondary language jennifer har...
PPTX
Empire ave
PPT
Enron Email visulisation at the Big Data InfoVis summer school
PPT
Summer School on Big Data Information Visulisation
PPTX
Presentperfect
PPTX
Family work freetime_study
PPT
Biografia de Domingo Faustino Valentin Sarmiento.
Visual Analysis and Historical Discovery
Cups
Mapping Commodity Trading
Social Networking: Visualizing Twitter
Verb patterns 8 c_revision and more
NASA Webserver Big Data InfoVis Summer School presentation
Guida tecnica 29
Technology and alternate teaching methods for secondary language jennifer har...
Empire ave
Enron Email visulisation at the Big Data InfoVis summer school
Summer School on Big Data Information Visulisation
Presentperfect
Family work freetime_study
Biografia de Domingo Faustino Valentin Sarmiento.
Ad

Similar to Responsive Web Design - Drupal Camp CPH (20)

PDF
Responsive web design
PPT
Mobile Monday Presentation: Responsive Web Design
PPTX
Responsive web design
PDF
Responsive Web design Zambig
KEY
Responsive UX - One size fits all @BigDesign conference #BigD12
PDF
Responsive Design in WordPress
PDF
Responsive Web Site Design
PDF
Responsive Web Design On Student's day
PDF
Responsive Design Tools & Resources
PDF
CSS3, Media Queries, and Responsive Design
PDF
Responsive webdesign WordCampNL 2012
PDF
Module 08: Responsive Web Design
PDF
Responsive Websites
PPT
Responsive Web Design
PDF
Responsive design
PDF
CSS3: Simply Responsive
KEY
Introduction to Responsive Web Design
KEY
An Introduction to Responsive Web Design
PDF
CSS3: Using media queries to improve the web site experience
PDF
Introduction to Responsive Design v.2
Responsive web design
Mobile Monday Presentation: Responsive Web Design
Responsive web design
Responsive Web design Zambig
Responsive UX - One size fits all @BigDesign conference #BigD12
Responsive Design in WordPress
Responsive Web Site Design
Responsive Web Design On Student's day
Responsive Design Tools & Resources
CSS3, Media Queries, and Responsive Design
Responsive webdesign WordCampNL 2012
Module 08: Responsive Web Design
Responsive Websites
Responsive Web Design
Responsive design
CSS3: Simply Responsive
Introduction to Responsive Web Design
An Introduction to Responsive Web Design
CSS3: Using media queries to improve the web site experience
Introduction to Responsive Design v.2
Ad

Recently uploaded (20)

PPTX
joggers park landscape assignment bandra
PPTX
YV PROFILE PROJECTS PROFILE PRES. DESIGN
PPTX
CLASS_11_BUSINESS_STUDIES_PPT_CHAPTER_1_Business_Trade_Commerce.pptx
PDF
Trusted Executive Protection Services in Ontario — Discreet & Professional.pdf
PPTX
DOC-20250430-WA0014._20250714_235747_0000.pptx
PPT
WHY_R12 Uaafafafpgradeaffafafafaffff.ppt
PPTX
rapid fire quiz in your house is your india.pptx
PPTX
6- Architecture design complete (1).pptx
PDF
UNIT 1 Introduction fnfbbfhfhfbdhdbdto Java.pptx.pdf
PDF
Urban Design Final Project-Context
PDF
Design Thinking - Module 1 - Introduction To Design Thinking - Dr. Rohan Dasg...
PPTX
Tenders & Contracts Works _ Services Afzal.pptx
PPT
EGWHermeneuticsffgggggggggggggggggggggggggggggggg.ppt
PDF
Key Trends in Website Development 2025 | B3AITS - Bow & 3 Arrows IT Solutions
PPTX
areprosthodontics and orthodonticsa text.pptx
PDF
Urban Design Final Project-Site Analysis
PPTX
BSCS lesson 3.pptxnbbjbb mnbkjbkbbkbbkjb
PPTX
Media And Information Literacy for Grade 12
PPTX
12. Community Pharmacy and How to organize it
PPT
Machine printing techniques and plangi dyeing
joggers park landscape assignment bandra
YV PROFILE PROJECTS PROFILE PRES. DESIGN
CLASS_11_BUSINESS_STUDIES_PPT_CHAPTER_1_Business_Trade_Commerce.pptx
Trusted Executive Protection Services in Ontario — Discreet & Professional.pdf
DOC-20250430-WA0014._20250714_235747_0000.pptx
WHY_R12 Uaafafafpgradeaffafafafaffff.ppt
rapid fire quiz in your house is your india.pptx
6- Architecture design complete (1).pptx
UNIT 1 Introduction fnfbbfhfhfbdhdbdto Java.pptx.pdf
Urban Design Final Project-Context
Design Thinking - Module 1 - Introduction To Design Thinking - Dr. Rohan Dasg...
Tenders & Contracts Works _ Services Afzal.pptx
EGWHermeneuticsffgggggggggggggggggggggggggggggggg.ppt
Key Trends in Website Development 2025 | B3AITS - Bow & 3 Arrows IT Solutions
areprosthodontics and orthodonticsa text.pptx
Urban Design Final Project-Site Analysis
BSCS lesson 3.pptxnbbjbb mnbkjbkbbkbbkjb
Media And Information Literacy for Grade 12
12. Community Pharmacy and How to organize it
Machine printing techniques and plangi dyeing

Responsive Web Design - Drupal Camp CPH

  • 1. 1 Responsive Web Design Drupalcamp Copenhagen, September 25th 2011
  • 3. Current grid/layout thinking and theory is based on the notion of there being a page to work in from. There is no page. Mark Boulton
  • 4. 4 What it really is PRINT DESIGN WEB DESIGN RESPONSIVE 214 x 110mm 1024 x 768px 4-farve Window, Mac, Linux ? CMYK IE, Safari, Firefox
  • 6. 6 What you need §  Fluid Grid §  Flexible Images/Media §  Media Queries
  • 7. 7 From fixed grid to fluid grid 12 cols x 80px = The classic 960px grid §  960px = 100% §  80px = (80 / 960) * 100 = 8.33333333% CSS: .cols12{width:100%}! .cols01{float:left;width:8.33333333%}! .cols02{float:left;width:16.66666666%}! .. And so on ..
  • 8. 8 Flexible Images/Media Image: •  140px wide – 10px margin •  But within a 4 column (320px) section §  320px = 100% §  140px = (140 / 320) * 100 = 43.75% §  10px = (10 / 320) * 100 = 3.125% CSS: .cols04 img{float:left;max-width:43.75%;margin:3.125%}!
  • 9. 9 Media Queries CSS: @media screen and (max-width: 1024px){ !.cols04 img{float:left;max-width: 43.75%;margin:3.125%}! }! ! ! ! @media screen and (min-width: 1024px){ !.cols04 img{float:none;max-width: 93.75%;margin:3.125%}! }! ! HTML: <meta name="viewport" content="width=device- width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />! ! !
  • 12. 12 Tips Fluid Grids §  Remember: It’s relative to the parent element §  Beware of subpixel rendering Flexible Images/Media §  Use AlphaImageLoader to improve image quality in IE-browsers §  Use fitvids.js for flexible video §  Serve different image sizes dependent on resolution Media Queries §  Go mobile content first §  Define your breakpoints early on and don’t overdo it §  IE6-8? Use respond.js (or don’t bother) §  Remember your <meta viewport ..> tag
  • 14. 14 The Links The article: http://www.alistapart.com/articles/responsive-web-design/ The book: http://www.abookapart.com/products/responsive-web-design The tweets: @beep @rwd @adactio @markboulton
  • 16. 16 Kim Johannesen §  Head of Design, Peytz & Co §  http://peytz.dk §  @peytz / @peytzdesign §  kjo@peytz.dk §  http://kimblim.dk §  @therealkimblim / @overflowhidden