Class 7
@rwdkent
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
@rwdkent
https://codepen.io/droll_ksu/pen/qvEbRZ
@media screen and (min-width: 600px) {
/* CSS Styles That Apply Go Here */
} @media screen and (max-width: 1200px) {
/* CSS Styles That Apply Go Here */
}
@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 */ }
Company Name
Name, Telephone, Email
Contact Information
Our Products
Map
Locations
Search Company Name
Name, Telephone, Email Contact Information
Our Products
Map
Locations
Search
width height device-width device-height
aspect-ratio device-aspect ratio color color-index monochrome resolution scan
<meta name=“viewport” content=“initial-scale=1.0, width=device-width” />
https://codepen.io/droll_ksu/pen/BbyjZx
Infinity
Infinity 600px
Meaning: If [device width] is less than or equal to 600px, then do {…}
Infinity 1200px
Meaning: If [device width] is greater than or equal to 600px, then do {…}
Infinity 1000px 800px
Meaning: If [device width] is between 800px and 600px, then do {…}
Infinity 500px
Infinity 1100px
@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*/ }
@media screen and (min-width: 600px) { p { color: purple; } }
@media screen and (max-width: 1200px) { p { color: purple; } }