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

class 7
SMART_READER_LITE
LIVE PREVIEW

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


slide-1
SLIDE 1

Class 7

@rwdkent

slide-2
SLIDE 2

RWD Book

slide-3
SLIDE 3

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

slide-4
SLIDE 4

What challenges do separate mobile/tablet experiences present

  • vs. using responsive design?
slide-5
SLIDE 5

Responsive Web Design

Percentage-Based Grids Flexible Images Media Queries

slide-6
SLIDE 6

https://codepen.io/droll_ksu/pen/qvEbRZ

target / context = result

Percentage-Based Grids

slide-7
SLIDE 7

Fluid Images

img { max-width: 100%; }

slide-8
SLIDE 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 */

}

slide-9
SLIDE 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 */ }

slide-10
SLIDE 10

Breakpoint

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

slide-11
SLIDE 11

Company Name

Name, Telephone, Email

Contact Information

Our Products

Map

Locations

Search Company Name

Name, Telephone, Email Contact Information

Our Products

Map

Locations

Search

Breakpoint: 1000px wide

^

slide-12
SLIDE 12

Media Query

width height device-width device-height

  • rientation

aspect-ratio device-aspect ratio color color-index monochrome resolution scan

slide-13
SLIDE 13

Magic Meta Tag

<meta name=“viewport” content=“initial-scale=1.0, width=device-width” />

slide-14
SLIDE 14

Simple Responsive Example

https://codepen.io/droll_ksu/pen/BbyjZx

slide-15
SLIDE 15

No Media Query

Infinity

slide-16
SLIDE 16

@media screen and (max-width: 600px) { }

Infinity 600px

Meaning: If [device width] is less than or equal to 600px, then do {…}

slide-17
SLIDE 17

@media screen and (min- width: 1200px) { }

Infinity 1200px

Meaning: If [device width] is greater than or equal to 600px, then do {…}

slide-18
SLIDE 18

@media screen and (min-width: 800px) and (max-width: 1000px) { }

Infinity 1000px 800px

Meaning: If [device width] is between 800px and 600px, then do {…}

slide-19
SLIDE 19

@media screen and (min-height: 500px) { }

Infinity 500px

slide-20
SLIDE 20

@media screen and (max-height: 1100px) { }

Infinity 1100px

slide-21
SLIDE 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*/ }

slide-22
SLIDE 22

Media Query

@media screen and (min-width: 600px) { p { color: purple; } }

@media screen and (max-width: 1200px) { p { color: purple; } }

slide-23
SLIDE 23

https://codepen.io/droll_ksu/pen/ wOBMOR

Media Query Examples