class 7
play

Class 7 @rwdkent RWD Book Why does the concept of the canvas, - PowerPoint PPT Presentation

Class 7 @rwdkent RWD Book Why does the concept of the canvas, used in print design, not translate well to the web? What challenges do separate mobile/tablet experiences present vs. using responsive design? Responsive Web Design


  1. Class 7 @rwdkent

  2. RWD Book

  3. Why does the concept of the canvas, used in print design, not translate well to the web?

  4. What challenges do separate mobile/tablet experiences present vs. using responsive design?

  5. Responsive Web Design Percentage-Based Grids Flexible Images Media Queries

  6. Percentage-Based Grids target / context = result https://codepen.io/droll_ksu/pen/qvEbRZ

  7. Fluid Images img { max-width: 100%; }

  8. Media Query @media screen and (min-width: 600px) { /* CSS Styles That Apply Go Here */ } @media screen and (max-width: 1200px) { /* CSS Styles That Apply Go Here */ }

  9. Media Query @media screen and (min-width: 600px) and (max-width: 1200px) { /* CSS Styles That Apply Go Here */ } @media screen and (min-height: 600px) { /* CSS Styles That Apply Go Here */ }

  10. Breakpoint Size at which the page layout or design “breaks” Can have multiple breakpoints per layout Let design (not device) dictate breakpoints

  11. Company Name Company Name Search Search Our Products Our Products Locations Locations Map Map Name, Telephone, Email Name, Telephone, Email Contact Information Contact Information ^ Breakpoint: 1000px wide

  12. Media Query width device-aspect ratio height color device-width color-index device-height monochrome orientation resolution aspect-ratio scan

  13. Magic Meta Tag <meta name=“viewport” content=“initial-scale=1.0, width=device-width” />

  14. Simple Responsive Example https://codepen.io/droll_ksu/pen/BbyjZx

  15. No Media Query 0 Infinity

  16. @media screen and (max-width: 600px) { } Meaning: If [device width] is less than or equal to 600px, then do {…} 0 600px Infinity

  17. @media screen and (min- width: 1200px) { } Meaning: If [device width] is greater than or equal to 600px, then do {…} 0 1200px Infinity

  18. @media screen and (min-width: 800px) and (max-width: 1000px) { } Meaning: If [device width] is between 800px and 600px, then do {…} 0 800px 1000px Infinity

  19. Infinity @media screen and (min-height: 500px) { } 500px 0

  20. Infinity @media screen and 1100px (max-height: 1100px) { } 0

  21. Media Query @media screen and (min-width: 600px) { /* CSS Styles Inside Here Only Apply at 600px and higher*/ } @media screen and (max-width: 1200px) { /* CSS Styles Inside Here Only Apply at 1200px and lower*/ }

  22. Media Query @media screen and (min-width: 600px) { p { color: purple; } } @media screen and (max-width: 1200px) { p { color: purple; } }

  23. Media Query Examples https://codepen.io/droll_ksu/pen/ wOBMOR

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend