ALEKSANDRA HRISTOV | @alexhris Advanced Web Design @ FINKI | 11 Movember 2014 RWD
Jul 14, 2015
<div class="container-fluid">
<div class="row">
<div class=“col-xs-4”></div>
<div class=“col-xs-8”></div>
</div>
</div>
Worth targeting:
• 978px – desktop and large tablets
maximum page width
• 600px – tablets
Kindle Fire and other 7” tablets
• 480px – smartphones
one-column layout and mobile specific navigation
• @media only screen and (device-width: 768px) – iPad
useful for iPad specific fixes
body {min-width: 320px;
}
•Using max-width:100%;
•or for IE - scripts (imgsizer.js)
•Flex slider for galleries
• (including touch & swipe gestures)
•Scripts
<img srcset=“small.jpg 1x, medium.jpg 2x" src="small.jpg" alt="A rad wolf" />
medium.jpg (640 x 480) small.jpg (320 x 240)
device-pixel-ratio
large.jpg (1024x768) medium.jpg (640 x 480) small.jpg (320 x 240)
<img srcset="large.jpg 1024w, medium.jpg 640w, small.jpg 320w"
sizes="(min-width: 36em) 33.3vw, 100vw"
src="small.jpg"
alt="A rad wolf" />
Fluid+variable sized
large.jpg (1024x768) medium.jpg (640 x 480) small.jpg (320 x 240)
cropped-small.jpg (96 × 96 pixels) cropped-large.jpg (192 × 192 pixels)
<picture><source media="(min-width: 36em)"
srcset="large.jpg 1024w, medium.jpg 640w, small.jpg 320w"
sizes="33.3vw" />
<source srcset="cropped-large.jpg 2x, cropped-small.jpg 1x" />
<img src="small.jpg" alt="A rad wolf" />
</picture>
Art direction
logo.svg logo.png
<picture>
<source type="image/svg" src="logo.svg" /> <source type="image/png" src="logo.png" /> <img src="logo.gif"
alt="RadWolf, Inc." />
</picture>
Type-support
Content
Typography
Navigation
Tables, forms…
Design patterns
Advertising
Newsletters
…..
RESPONSIVE:
•Skeleton (boilerplate)
•Twitter bootstrap
•Zurb Foundation
•Basic CMS themes
•Skeleton (boilerplate)
•Twitter bootstrap
•Zurb Foundation
•Basic CMS themes
•Optimize pictures
•Font icons / SVG (image sprites)
•Minimize CSS/Js
•Compress in gzip (server-side)
•Check 1st byte time
•
• Pretty web design is nothing without good HTML(5)/CSS(3)
• Web designers shouldn’t stop at “Photoshop”
• “MOBILE FIRST” methodology
We should provide high tech quality, well thought of, user
friendly and useful websites
• screen sizes
• resolutions
• way of interaction (mouse, touch, movement, voice..)
• HTML5 semantics (input type="email" / tel / url / number)
• Remove address bar
BROWSER SUPPORT
• HTML5/CSS3 - standard by 2022 (2014)
• Not all users will have the same experience
• Media queries won’t work for the currently 30% of browsers
(IE8 and below)
• Mobile browsers are up to date
• iOS Safari, Android browser, IE Mobile, Opera Mobile/Mini
• Desktop browsers are ok since IE9 on
• Chrome, Firefox, IE9, Opera, Safari