3. Created by Vectors Market
from the Noun Project
640 Ć 480
In the beginningā¦
4.
5.
6. Created by Vectors Market
from the Noun Project
640 Ć 480
In the beginningā¦
7. 800 Ć 600
Created by Vectors Market
from the Noun Project
Ok, we can go a little larger.
8.
9.
10.
11. 800 Ć 600
Created by Vectors Market
from the Noun Project
Ok, we can go a little larger.
12. Created by Vectors Market
from the Noun Project
1024 Ć 768
Ok, a bit larger, but thatās it.
13. Created by Vectors Mark
from the Noun Project
1366 Ć 7681024 Ć 600
Created by Vectors Market
from the Noun Project
1280 Ć 800
Created by Vectors Market
from the Noun Project
800 Ć 600
Created by Vectors Market
from the Noun Project
Of course laptopsā¦
14. 1024 Ć 768
Created by Vectors Market
from the Noun Project
The webāsāhappy placeā.
15. 640 Ć 200
Created by Douglas Santos
from the Noun Project
Created by creative outlet
from the Noun Project
240 Ć 240
We were ignoring mobileā¦
16. 3840 Ć 2160320 Ć 480
Created by Vectors Market
from the Noun Project
Created by Vectors Market
from the Noun Project
Until this happened.
24. In the second quarter of 2008
we detected 71 different
screen resolutions among our
visitors. In the first quarter of
2014 we detected
ā Jason SamuelsāØ
IT Manager,āØ
National Council on Family Relations
Source
ā
1062
One year after the iPhone
3 years ago!
25. ā 200
In 2008, 27 screen āØ
resolutions showed up with
more than 10 visits, in 2014
that number was
ā Jason SamuelsāØ
IT Manager,āØ
National Council on Family Relations
Source
29. Your content can and will go
anywhere thatās connected
Created by Vectors Market
from the Noun Project
Created by Vectors Market
from the Noun Project
Created by Vectors Market
from the Noun Project
Created by Vectors Market
from the Noun Project
wearables smart tvs IoT assistants
30. Meaning users will need to
interact in different ways
Created by Vectors Market
from the Noun Project
touch Created by Vectors Market
from the Noun Project
mouse
Created by bezier master
from the Noun Project
T9
Created by Christopher Holm-Hansen
from the Noun Project
eye tracking
Created by Vectors Market
from the Noun Project
remote
Created by Setyo Ari Wibowo
from the Noun Project
pen
Created by Vectors Market
from the Noun Project
keyboard
Created by Vectors Market
from the Noun Project
audio
Created by Vectors Market
from the Noun Project
gamepad
Created by Vectors Market
from the Noun Project
printCreated by Adriano Emerick
from the Noun Project
braille
31. Over varied networks andāØ
in changing conditions
Created by Vectors Market
from the Noun Project
hardline
Created by Vectors Market
from the Noun Project
wifi
Created by Vectors Market
from the Noun Project
mobile
Created by Vectors Market
from the Noun Project
homes
Created by Vectors Market
from the Noun Project
buildings
Created by Vectors Market
from the Noun Project
cars
Created by Vectors Market
buses Created by Vectors Market
from the Noun Project
trains
Created by Vectors Market
from the Noun Project
airplanes
55. ADVANCED DESIGN METHODS
Responsive Web Design
ą¹ Fluid GridsāØ
The overall layout (and grid structure, if used) adapts to the viewport
size, filling the width 100% up to a sensible maximum.
ą¹ Flexible MediaāØ
Images, videos & such scale with the layout and do not break out of their
parent
ą¹ Media QueriesāØ
Scoping CSS based on specific characteristics of the screen (width,
height, resolution, color depth, etc.)
58
57. ADVANCED DESIGN METHODS
Flexible Media
img,
video {āØ
max-width: 100%;āØ
height: auto;
}
Constrains the widthāØ
to the width ofāØ
the elementās parent
Ensures the imageāsāØ
natural aspect ratioāØ
is maintained
66. ADVANCED DESIGN METHODS
Media Queries
@media screen {āØ
/* screen styles go here */āØ
}
@media print {āØ
/* print styles go here */āØ
}
67. ADVANCED DESIGN METHODS
Media Queries
@media screen and (min-width: 320px) {āØ
/* Only used if in the screen media typeāØ
and the screen width is at least 320pxāØ
wide */āØ
}
@media screen and (max-width: 900px) {āØ
/* Only used if in the screen media typeāØ
and the screen width is less thanāØ
900px wide */āØ
}
68. ADVANCED DESIGN METHODS
Media Queries
@media screen and (min-width: 320px)āØ
and (max-width: 900px) {āØ
/* Only used if in the screen media typeāØ
and the screen width is at least 320pxāØ
and less than 900px wide */āØ
}
69. ADVANCED DESIGN METHODS
Media Queries
@media (min-resolution: 192dpi) {āØ
/* Only used if the screen resolution isāØ
equivalent to 192 dots per inch
(āretinaā) */
}
70. ADVANCED DESIGN METHODS
How to pick media queries
1. Begin designing with the smallest size you want to support.
2. Stretch the browser window wider until it looks bad.
3. Add a media query and adjust the design.
4. Go back to Step 2.
73
107. ADVANCED DESIGN METHODS
How to pick media queries
1. Begin designing with the smallest size you want to support.
2. Stretch the browser window wider until it looks bad.
3. Add a media query and adjust the design.
4. Go back to Step 2.
109
116. ADVANCED DESIGN METHODS
Step by step
2. Write it out, then read it back.
119
How does this photo make you feel?
Embarrassing
Upsetting
Saddening
Bad Photo
Other itās embarrassingā¢
117. ADVANCED DESIGN METHODS
Step by step
2. Write it out, then read it back.
120
Please describe the photo
Itās embarrassing
Itās a bad photo of me
It makes me sad
118. ADVANCED DESIGN METHODS
3. Look for semantics that support 1 & 2.
Step by step
121
heading
a
paragraph
a
img
a
119. ADVANCED DESIGN METHODS
Step by step
3. Look for semantics that support 1 & 2.
122
heading (also .p-name)a (also .u-url)
paragraphāØ
aāØ
(also .p-authorāØ
& .h-card)
.h-entry (feed)
img (also .u-photo)
a (also rel-tag)
120. ADVANCED DESIGN METHODS
Step by step
4. Think about how design can improve comprehension.
123
visually the mostimportant text
distinct from the
content & diminished
in importance
Less important &
distinct from content
121. ADVANCED DESIGN METHODS
Step by step
5. Consider how your design choices impact the reading experience.
124
Canāt tell what theepisode is called
122. ADVANCED DESIGN METHODS
Step by step
5. Consider how your design choices impact the reading experience.
125
Floated images crush the
text on small screens
Ouch
123. ADVANCED DESIGN METHODS
Step by step
6. Think about the many different ways folks might interact.
126
Created by Vectors Market
from the Noun Project
touch Created by Vectors Market
from the Noun Project
mouse
Created by bezier master
from the Noun Project
T9
Created by Christopher Holm-Hansen
from the Noun Project
eye tracking Created by Vectors Market
from the Noun Project
remote
Created by Setyo Ari Wibowo
from the Noun Project
pen
Created by Vectors Market
from the Noun Project
keyboard
Created by Vectors Market
from the Noun Project
gamepadCreated by Vectors Market
from the Noun Project
printCreated by Adriano Emerick
from the Noun Projectbraille
Created by Vectors Market
from the Noun Project
audio
124. ADVANCED DESIGN METHODS
Step by step
6. Think about the many different ways folks might interact.
127
touch Created by Vectors Market
from the Noun Project
mouse
Created by Christopher Holm-Hansen
from the Noun Project
eye tracking
Hover?
125. ADVANCED DESIGN METHODS
Step by step
6. Think about the many different ways folks might interact.
128
Created by Vectors Market
from the Noun Project
touch Created by Vectors Market
from the Noun Project
mouse
Created by bezier master
from the Noun Project
T9
Created by Christopher Holm-Hansen
from the Noun Project
eye tracking Created by Vectors Market
from the Noun Project
remote
Created by Setyo Ari Wibowo
from the Noun Project
pen
Created by Vectors Market
from the Noun Project
keyboard
Created by Vectors Market
from the Noun Project
gamepad
Focus & target?
Created by Vectors Market
from the Noun Project
audio
126. ADVANCED DESIGN METHODS
Step by step
6. Think about the many different ways folks might interact.
129
Created by Vectors Market
from the Noun Project
touch Created by Vectors Market
from the Noun Project
mouse
Created by Setyo Ari Wibowo
from the Noun Project
pen
Gestures?
127. ADVANCED DESIGN METHODS
Step by step
6. Think about the many different ways folks might interact.
130
Created by Vectors Market
from the Noun Project
printCreated by Adriano Emerick
from the Noun Projectbraille
Text expansions?
Created by Vectors Market
from the Noun Project
audio
128. ADVANCED DESIGN METHODS
Step by step
7. Map the potential experiences.
131
Path A
Experience 1Start
Path B
Experience 2
Notes
Decision point Change
129. ADVANCED DESIGN METHODS
Step by step
1. Focus on what matters.
2. Write it out, then read it back.
3. Look for semantics that support 1 & 2.
4. Think about how design can improve comprehension.
5. Consider how your design choices impact the reading experience.
6. Think about the many different ways folks might interact.
7. Map the potential experiences.
8. Iterate.
133
133. ADVANCED DESIGN METHODS
Average viewing distances
Created by Vectors Market
from the Noun Project
12ā Created by Vectors Market
from the Noun Project
18ā
Created by Vectors Market
from the Noun Project
30ā
Created by Vectors Market
from the Noun Project
8ā
Created by Vectors Marke
from the Noun Project
9ā
142. ADVANCED DESIGN METHODS
Em vs. Rem: All in the context
html {
font-size: 16px;
}
h1 {
font-size: 2em;
}
#section {
font-size: 20px;
}
This is an h1
This is some normal text.
This is an h1 inside #section
This is text in #section.
143. ADVANCED DESIGN METHODS
Em vs. Rem: All in the context
html {
font-size: 16px;
}
h1 {
font-size: 2rem;
}
#section {
font-size: 20px;
}
This is an h1
This is some normal text.
This is an h1 inside #section
This is text in #section.
159. ADVANCED DESIGN METHODS
Evaluate images case-by-case
ą¹ Does the image reiterate information found in the surrounding text?
ą¹ Is the image necessary to understand the surrounding content?
ą¹ Does the image contain text?
ą¹ Is the image a graph, chart, or table?
ą¹ Could the content of the image be presented in a different format that
would not require an image?
ą¹ Is the image purely presentational?
160
163. If you need an
image, chooseāØ
the best format
164. ADVANCED DESIGN METHODS
Quick format recap
ą¹ GIF
ā£ for images with large swaths of solid colors
ā£ Binary transparency
ą¹ JPG
ā£ For photographs and images with gradations of color
ā£ Can be compressed (introduces artifacts)
165
165. ADVANCED DESIGN METHODS
Quick format recap
ą¹ PNG (8-Bit)
ā£ Alternative to GIF
ā£ Can support alpha transparency (with the right creation software)
ą¹ PNG (24-bit)
ā£ Alternative to JPG
ā£ Usually larger than JPGs
ā£ Supports alpha tranparency
166
166. ADVANCED DESIGN METHODS
Quick format recap
ą¹ WebP
ā£ Newer format, not universally supported
ā£ Smaller than JPGs and 24-bit PNGs
ā£ Support alpha transparency
ą¹ JPEG 2000
ā£ Newer format, not universally supported
ā£ Like JPG, but with better compression
167
167. ADVANCED DESIGN METHODS
Indicating alternate formats
<picture>
<source type="image/webp" srcset="my.webp">āØ
<img src="my.jpg" alt="Alt text goes here">
</picture>
first choice ifāØWebP is supported fallback imageāØ
if it isnāt
169. You can also supply
different images
based on screen size,
resolution, etc.
170. ADVANCED DESIGN METHODS
Indicating alternate sizes
<img src="small.jpg"āØ
sizes="100vw"āØ
srcset="med.jpg 800w, large.jpg 1400w"āØ
alt="ā¦">
image will alwaysāØ
be displayed at full width
browser should chooseāØ
the best option basedāØ
on these sizing hints
fallback