Squishy Pixels with Varun Vachhar
Presented at FITC's Web Unleashed Toronto 2014 Conference
on September 17
More info at www.FITC.ca
Adaptive Web Design and Responsive Web Design are often presented as competing design strategies. However, Adaptive Web Design is a superset of techniques aimed at crafting sites which provide an optimal user experience across multiple screen sizes. Responsive Web Design is just one such technique.
In this session, Varun will cover the major techniques that make up the Adaptive Web Design strategy, how and when to choose these techniques for creating contextually-aware web experiences, and will give an introduction to building responsive layouts using CSS Flexbox.
OBJECTIVE
To demystify the world of multi-device and cross-platform web design.
TARGET AUDIENCE
Web designers and developers
ASSUMED AUDIENCE KNOWLEDGE
Intermediate HTML and CSS. Basic design knowledge.
FIVE THINGS AUDIENCE MEMBERS WILL LEARN
What is Adaptive/Responsive Web Design
Where responsive design fits in an adaptive web design strategy
Other techniques that are a part of an adaptive web design strategy
How/when to pick from the various available strategies
Introduction to layouts with CSS Flexbox
10. Responsive Web Design
Responsive design is a technique in which the same HTML
code is delivered to each device, but tweaks to CSS, allow
it to adjust to the screen's form factor.
– Ravi Pratap
35. Imager.js
• lookup placeholder elements
• replace placeholders with transparent images
• update src attribute for each image and assign the best
quality/size ratio URL
41. Responsive Typography
Using Media Queries and px or em values
body {
font-size: 100%;
}
h1 {
font-size: 25em;
}
@media screen and (max-width: 50em) {
h1 {
font-size:2em;
}
}
42. Responsive Typography
Using Viewport CSS units
1vw = Equal to 1% of the width of the initial containing block
1vh = Equal to 1% of the height of the initial containing block
1vmin = Equal to the smaller of vw or vh
1vmax = Equal to the larger of vw or vh
W3C Values and Units Module Level 3
43. Using rem. markdotto.com/mdo.css is a great example
html {
font-family: "PT Serif", Georgia, "Times New Roman", serif;
font-size: 16px;
}
@media (min-width: 48em) {
html {
font-size: 21px;
}
}
h1 {
font-size: 2rem;
}