SlideShare une entreprise Scribd logo
1  sur  41
Télécharger pour lire hors ligne
Responsive Web Design
    by Sophy Prak
Sophy Prak
                    Web Developer - Web Essentials
                  Member of KTUG(typo3cambodia.org)




Photo: http://goo.gl/Et5Py
Introduction
●   May 25th, 2010 Ethan Marcotte has wrote article “Responsive Web
    Design” (http://goo.gl/BLQMe)
●   Jun 18, 2010 SIMON COLLISON updated his blog with media
    queries(colly.com)




                                    3
4
Adaptive
(Multiple Fixed Width Layouts)

             or

    Responsive
(Multiple Fluid Grid Layouts)




              5
Mixed Approach
Fixed width for large and medium
      Fluid width for small




               6
Why do we use Responsive
       Web Design?



           7
Should we create sub-domain
 and design layout for each
          devices?



             8
9
10
11
12
Answer

 NO!



  13
“Day by day, the number of devices, platforms,
and browsers that need to work with your site
grows. Responsive web design represents a
fundamental shift in how we’ll build websites
for the decade to come.”

                   - Jeffrey Veen




                       14
“Responsive design will become even better as
we get tools, like Flexible Box and the Grid
Layout spec”

                   - Eric Meyer




                       15
One site for every screen




                     - John Polacek
            16
Who is using it?



        17
london.msn.co.uk




http://www.barackobama.com/




                              18
www.barackobama.com




http://www.barackobama.com/




                              19
www.smashingmagazine.com




http://www.smashingmagazine.com/



                                   20
www.bostonglobe.com




http://www.bostonglobe.com




                             21
Other sites

●   http://css-tricks.com/
●   http://webdesignerwall.com/
●   For more http://mediaqueri.es/




                                     22
Responsive Web Design
●   Key Elements of Responsive Web Design
    ●   Flexible Layout
    ●   Flexible Images and Media
    ●   Media Queries




                                     23
Flexible Layout
First step considered for responsive design is flexible layout. As the browser
width changes, fluid grids will resize and reposition the content as
necessary.




                                    24
Flexible Images and Media
●    Adjusting images according to the different screen widths or devices is
     another important aspect of responsive web design
    img,
    embed,
    video,
    object{
         max-width: 100%;
    }



●    Tutorial fluid image
1. http://unstoppablerobotninja.com/entry/fluid-images/
2. http://www.alistapart.com/articles/fluid-images/


                                         25
Media Queries
●   In CSS2 you was able to apply specific stylesheet for specify media
    type like screen or print.
●   In CSS3, W3C made it more efficient by adding media queries made it
    as part of the CSS3 specification




                                     26
How we use media
    queries?



       27
Media Queries Conditions
/* Landscape phones and down */
@media (max-width: 480px) { ... }

/* Landscape phone to portrait tablet */
@media (max-width: 767px) { ... }

/* Portrait tablet to landscape and desktop */
@media (min-width: 768px) and (max-width: 979px) { ... }

/* Large desktop */
@media (min-width: 1200px) { ... }


                                     Source of Twitter Bootstrap



                          28
/* Landscape phones and down */
@media (max-width: 480px) { ... }




                           29
/* Landscape phone to portrait tablet */
  @media (max-width: 767px) { ... }




                           30
/* Portrait tablet to landscape and desktop */
  @media (min-width: 768px) and (max-width: 979px) { ... }




                             31
/* Large desktop */
  @media (min-width: 1200px) { ... }




                           32
Frameworks
   (save time)
       or
Roll Your Own
  (more control)




        33
Framework for
Responsive Web Design


          34
Bootstrap, from Twitter
●   Simple, fluid HTML/CSS/JS framework from Twitter
●   http://twitter.github.com/bootstrap/




                                           35
Foundation
●   The most advanced responsive front-end framework in the world.
●   http://foundation.zurb.com/




                                     36
1140 CSS GRID
●   The 1140 grid fits perfectly into a 1280 monitor...
●   http://cssgrid.net/




                                         37
Other frameworks
●   http://stuffandnonsense.co.uk/projects/320andup/
●   http://framelessgrid.com/
●   http://lessframework.com/
●   http://www.amazium.co.uk/




                                      38
Tips
●    Meta viewport
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />




●    Use css3-mediaqueries.js for IE8 or older
      <!--[if lt IE 9]>

      <script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-
      mediaqueries.js"></script>

      <![endif]-->




                                              39
References
●   Responsive Web Design (http://goo.gl/BLQMe)
●   Designing for a Responsive Web (http://goo.gl/iK6dO)
●   Fluid Image (http://goo.gl/RvQlO)
●   More responsive tutorials (http://goo.gl/G75ov)
●   What the hack is Responsive Web Design(http://goo.gl/kUod7)




                                        40
Q&A
       Contact me:
sophy@web-essentials.asia
          @sophy
    http://kooms.info




            41

Contenu connexe

En vedette (6)

Quality Development with CSS3
Quality Development with CSS3Quality Development with CSS3
Quality Development with CSS3
 
HTML5 Bootcamp: Essential HTML, CSS, & JavaScript
HTML5 Bootcamp: Essential HTML, CSS, & JavaScriptHTML5 Bootcamp: Essential HTML, CSS, & JavaScript
HTML5 Bootcamp: Essential HTML, CSS, & JavaScript
 
Fundamental CSS3
Fundamental CSS3Fundamental CSS3
Fundamental CSS3
 
Fundamental HTML5
Fundamental HTML5Fundamental HTML5
Fundamental HTML5
 
Up to Speed on HTML 5 and CSS 3
Up to Speed on HTML 5 and CSS 3Up to Speed on HTML 5 and CSS 3
Up to Speed on HTML 5 and CSS 3
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 

Similaire à Responsive Web Design On Student's day

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
 
Effective and Efficient Design with CSS3
Effective and Efficient Design with CSS3Effective and Efficient Design with CSS3
Effective and Efficient Design with CSS3
Zoe Gillenwater
 
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
touchtitans
 

Similaire à Responsive Web Design On Student's day (20)

Responsive web design
Responsive web designResponsive web design
Responsive web design
 
CSS3, Media Queries, and Responsive Design
CSS3, Media Queries, and Responsive DesignCSS3, Media Queries, and Responsive Design
CSS3, Media Queries, and Responsive Design
 
Responsive Web Design
Responsive Web DesignResponsive Web Design
Responsive Web Design
 
An Introduction to Responsive Design
An Introduction to Responsive DesignAn Introduction to Responsive Design
An Introduction to Responsive Design
 
Responsive Web Design for Universal Access
Responsive Web Design for Universal AccessResponsive Web Design for Universal Access
Responsive Web Design for Universal Access
 
CSS3: Using media queries to improve the web site experience
CSS3: Using media queries to improve the web site experienceCSS3: Using media queries to improve the web site experience
CSS3: Using media queries to improve the web site experience
 
CSS3: Simply Responsive
CSS3: Simply ResponsiveCSS3: Simply Responsive
CSS3: Simply Responsive
 
Great Responsive-ability Web Design
Great Responsive-ability Web DesignGreat Responsive-ability Web Design
Great Responsive-ability Web Design
 
Responsive Design con TYPO3 - T3Camp Italia 2012 Bologna
Responsive Design con TYPO3 - T3Camp Italia 2012 BolognaResponsive Design con TYPO3 - T3Camp Italia 2012 Bologna
Responsive Design con TYPO3 - T3Camp Italia 2012 Bologna
 
Responsive Web Design - Devoxx UK - 2014-06-13
Responsive Web Design - Devoxx UK - 2014-06-13Responsive Web Design - Devoxx UK - 2014-06-13
Responsive Web Design - Devoxx UK - 2014-06-13
 
Effective and Efficient Design with CSS3
Effective and Efficient Design with CSS3Effective and Efficient Design with CSS3
Effective and Efficient Design with CSS3
 
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
 
How to Project-Manage and Implement a Responsive Website
How to Project-Manage and Implement a Responsive WebsiteHow to Project-Manage and Implement a Responsive Website
How to Project-Manage and Implement a Responsive Website
 
Advancio, Inc. Academy: Responsive Web Design
Advancio, Inc. Academy: Responsive Web DesignAdvancio, Inc. Academy: Responsive Web Design
Advancio, Inc. Academy: Responsive Web Design
 
Responsive web designing course in Chandigarh
Responsive web designing course in Chandigarh Responsive web designing course in Chandigarh
Responsive web designing course in Chandigarh
 
Responsive Web Design (HeadStart TechTalks)
Responsive Web Design (HeadStart TechTalks)Responsive Web Design (HeadStart TechTalks)
Responsive Web Design (HeadStart TechTalks)
 
24 Tips for SITECORE
24 Tips for SITECORE24 Tips for SITECORE
24 Tips for SITECORE
 
Responsive web designing
Responsive web designingResponsive web designing
Responsive web designing
 
CSS3 Media Queries
CSS3 Media QueriesCSS3 Media Queries
CSS3 Media Queries
 
Responsive web design
Responsive web designResponsive web design
Responsive web design
 

Dernier

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 

Dernier (20)

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 

Responsive Web Design On Student's day

  • 1. Responsive Web Design by Sophy Prak
  • 2. Sophy Prak Web Developer - Web Essentials Member of KTUG(typo3cambodia.org) Photo: http://goo.gl/Et5Py
  • 3. Introduction ● May 25th, 2010 Ethan Marcotte has wrote article “Responsive Web Design” (http://goo.gl/BLQMe) ● Jun 18, 2010 SIMON COLLISON updated his blog with media queries(colly.com) 3
  • 4. 4
  • 5. Adaptive (Multiple Fixed Width Layouts) or Responsive (Multiple Fluid Grid Layouts) 5
  • 6. Mixed Approach Fixed width for large and medium Fluid width for small 6
  • 7. Why do we use Responsive Web Design? 7
  • 8. Should we create sub-domain and design layout for each devices? 8
  • 9. 9
  • 10. 10
  • 11. 11
  • 12. 12
  • 14. “Day by day, the number of devices, platforms, and browsers that need to work with your site grows. Responsive web design represents a fundamental shift in how we’ll build websites for the decade to come.” - Jeffrey Veen 14
  • 15. “Responsive design will become even better as we get tools, like Flexible Box and the Grid Layout spec” - Eric Meyer 15
  • 16. One site for every screen - John Polacek 16
  • 17. Who is using it? 17
  • 22. Other sites ● http://css-tricks.com/ ● http://webdesignerwall.com/ ● For more http://mediaqueri.es/ 22
  • 23. Responsive Web Design ● Key Elements of Responsive Web Design ● Flexible Layout ● Flexible Images and Media ● Media Queries 23
  • 24. Flexible Layout First step considered for responsive design is flexible layout. As the browser width changes, fluid grids will resize and reposition the content as necessary. 24
  • 25. Flexible Images and Media ● Adjusting images according to the different screen widths or devices is another important aspect of responsive web design img, embed, video, object{ max-width: 100%; } ● Tutorial fluid image 1. http://unstoppablerobotninja.com/entry/fluid-images/ 2. http://www.alistapart.com/articles/fluid-images/ 25
  • 26. Media Queries ● In CSS2 you was able to apply specific stylesheet for specify media type like screen or print. ● In CSS3, W3C made it more efficient by adding media queries made it as part of the CSS3 specification 26
  • 27. How we use media queries? 27
  • 28. Media Queries Conditions /* Landscape phones and down */ @media (max-width: 480px) { ... } /* Landscape phone to portrait tablet */ @media (max-width: 767px) { ... } /* Portrait tablet to landscape and desktop */ @media (min-width: 768px) and (max-width: 979px) { ... } /* Large desktop */ @media (min-width: 1200px) { ... } Source of Twitter Bootstrap 28
  • 29. /* Landscape phones and down */ @media (max-width: 480px) { ... } 29
  • 30. /* Landscape phone to portrait tablet */ @media (max-width: 767px) { ... } 30
  • 31. /* Portrait tablet to landscape and desktop */ @media (min-width: 768px) and (max-width: 979px) { ... } 31
  • 32. /* Large desktop */ @media (min-width: 1200px) { ... } 32
  • 33. Frameworks (save time) or Roll Your Own (more control) 33
  • 35. Bootstrap, from Twitter ● Simple, fluid HTML/CSS/JS framework from Twitter ● http://twitter.github.com/bootstrap/ 35
  • 36. Foundation ● The most advanced responsive front-end framework in the world. ● http://foundation.zurb.com/ 36
  • 37. 1140 CSS GRID ● The 1140 grid fits perfectly into a 1280 monitor... ● http://cssgrid.net/ 37
  • 38. Other frameworks ● http://stuffandnonsense.co.uk/projects/320andup/ ● http://framelessgrid.com/ ● http://lessframework.com/ ● http://www.amazium.co.uk/ 38
  • 39. Tips ● Meta viewport <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" /> ● Use css3-mediaqueries.js for IE8 or older <!--[if lt IE 9]> <script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3- mediaqueries.js"></script> <![endif]--> 39
  • 40. References ● Responsive Web Design (http://goo.gl/BLQMe) ● Designing for a Responsive Web (http://goo.gl/iK6dO) ● Fluid Image (http://goo.gl/RvQlO) ● More responsive tutorials (http://goo.gl/G75ov) ● What the hack is Responsive Web Design(http://goo.gl/kUod7) 40
  • 41. Q&A Contact me: sophy@web-essentials.asia @sophy http://kooms.info 41