Presented to WordCamp KC 2011.
If you are a web designer of any type, you're interested in making sure your designs are faithful AND useful to the widest audience possible. This has been true for years. But now, your audience has widened to mobile users and also users on HDTVs. How do you accommodate them? Simple: Responsive Web Design.
This talk shows how to use some of the open source responsive CSS frameworks to make sites that are fluid and adaptable to a wide range of devices.
5. Ethan’s RWD Rules
1. A flexible grid.
2. Flexible images. Or more specifically, images that work in a flexible context
(whether fluid themselves, or perhaps controlled via overflow).
3. Media queries. The final layer of a responsive design, media queries optimize the
design for different viewing contexts, and spot-fix bugs that occur at different
resolution ranges.
16. Reasons for going responsive
• Wanted to design for highest resolution possible while not abandoning
the experience for 1024 × 768
• Wanted to give an optimized mobile experience for moms on the go as well as
tween girls that want to participate
• Give the design a longer shelf life
• Experimentation
23. Adaptability with style.
/* Layout for desktop version */
blah { omg: so much code; }
/* Layout for other versions */
@media only screen and (max-width: 1023px) { a few { things: for this resolution; }}
@media only screen and (max-width: 796px) { a few { things: for iPad portrait mode; }}
@media only screen and (max-width: 420px) { don't { forget: the mobile devices; }}
@media only screen and (-webkit-min-device-pixel-ratio: 2) { iPhone 4 {retina-display: stuff; }}