Right/Left Arrows Change Slides (or Swipe Right/Left)
Esc zooms out (or Pinch)
Responsive design is not about ‘designing for mobile’. But it’s not about ‘designing for the desktop’, either. Rather, it’s about adopting a more flexible, device-agnostic approach
— Ethan Marcotte author of Responsive Web Design
Do not automatically make sites work on various devices!
They allow you to test for the following,
but you must adapt the layout with CSS:
body { background: red; }
@media (max-width: 320px) {
body { background: orange; }
}
Screens 0 to 320px:
body’s background will be orange instead of red
(overrides the first rule)
Screens Larger than 320px:
body’s background will be red
1. Within a CSS file or <style> tag
@media (max-width: 768px) {
/* your css goes here */
}
2. When linking to a CSS file
<link media="(max-width: 768px)" href="tablet.css" rel="stylesheet">
3. Within a CSS file via @import
@import url("tablet.css") (max-width: 768px);
Nothing beats holding a device and touching the site:
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
Remove the width and height from the image:
<img src="image.png">
Ensure the image scales if it’s too large:
img {
max-width: 100%;
}
Make it easy & enjoyable for people to use.
Old Design (had to tap for reviews & tips) | Redesigned | Just scroll down for reviews & tips |
Websites and applications should be designed and built for mobile first.
“Mobile First” — Luke Wroblewski
Also check out his Designing for Mobile First Video
Going mobile first:
- Forces you to focus and prioritize [...] by embracing the constraints inherent in mobile design
- Allows you to deliver innovative experiences by building on new capabilities native to mobile devices
“Mobile First” — Luke Wroblewski
It can be easier to build up, rather than tear down.
.column {
float: left;
}
@media (max-width: 320px) {
.column {
float: none;
}
}
@media (min-width: 321px) {
.column {
float: left;
}
}
People will get frustrated if they can’t find information on mobile if they know it exists on desktop.
[the design process] is about designing and prototyping and making.
When you separate those, I think the final result suffers.
Already responsive.
Many have prebuilt CSS buttons and components.
Examples of Prebuilt Grid Systems:
Bootstrap,
Foundation, and
Skeleton
The challenge of responsive design is to be simultaneously agnostic and considerate of the environment in which it’s viewed.
Coding for Designers
2-hour beginner seminar
Mobile & Responsive Web Design
18-hours: coding experience required