Short introduction to
Mobile First Responsive Web Design
Bernard Lange
@gustaff_weldon
Bernard Lange
@gustaff_weldon
images adapting to container width
img { max-width: 100%; }
small images as default, replaced with JS
<img src="mobile-image.jpg"
data-full-src="desktop-image.jpg">
<picture alt="angry pirate"> <source src=hires.png media="min-width:800px"> <source src=midres.png media="network-speed:3g"> <source src=lores.png> <!-- fallback for browsers without support --> <img src=midres.png alt="angry pirate"> </picture>
Tools
Bernard Lange
@gustaff_weldon
Use a spacebar or arrow keys to navigate