Responsive Web Designer155.aisites.com/.../2013/07/Responsive-Web-Design... · The long and short...

24
An Introduction Presenter: Erikk Ross ([email protected])

Transcript of Responsive Web Designer155.aisites.com/.../2013/07/Responsive-Web-Design... · The long and short...

Page 1: Responsive Web Designer155.aisites.com/.../2013/07/Responsive-Web-Design... · The long and short of it is that we’re designing for more devices, more input types, more resolutions

An Introduction Presenter: Erikk Ross ([email protected])

Page 2: Responsive Web Designer155.aisites.com/.../2013/07/Responsive-Web-Design... · The long and short of it is that we’re designing for more devices, more input types, more resolutions
Page 3: Responsive Web Designer155.aisites.com/.../2013/07/Responsive-Web-Design... · The long and short of it is that we’re designing for more devices, more input types, more resolutions
Page 4: Responsive Web Designer155.aisites.com/.../2013/07/Responsive-Web-Design... · The long and short of it is that we’re designing for more devices, more input types, more resolutions

Flickr: Roberrific, sucelloleiloes, minitechnet, IQ computer services

Page 5: Responsive Web Designer155.aisites.com/.../2013/07/Responsive-Web-Design... · The long and short of it is that we’re designing for more devices, more input types, more resolutions

3 million new iPads sold on launch weekend iPhone 4 has sold 75 million units 190 million Android activations 1.6 billion mobile devices sold to end users in

2010 85% of handsets shipped globally in 2011 will

include a web browser

Page 6: Responsive Web Designer155.aisites.com/.../2013/07/Responsive-Web-Design... · The long and short of it is that we’re designing for more devices, more input types, more resolutions

Mobile web will be bigger than desktop Internet use by 2015. --Morgan Stanley

Page 7: Responsive Web Designer155.aisites.com/.../2013/07/Responsive-Web-Design... · The long and short of it is that we’re designing for more devices, more input types, more resolutions

How do you design a web site that works well on all devices?

Page 8: Responsive Web Designer155.aisites.com/.../2013/07/Responsive-Web-Design... · The long and short of it is that we’re designing for more devices, more input types, more resolutions

The long and short of it is that we’re designing for more devices, more input types, more resolutions than ever before. The web has moved beyond the desktop, and it’s not turning back. – Ethan Marcotte

Page 9: Responsive Web Designer155.aisites.com/.../2013/07/Responsive-Web-Design... · The long and short of it is that we’re designing for more devices, more input types, more resolutions
Page 10: Responsive Web Designer155.aisites.com/.../2013/07/Responsive-Web-Design... · The long and short of it is that we’re designing for more devices, more input types, more resolutions

Multiple web sites for different devices http://site.com/mobile/ http://mobile.site.com http://site.com/ipad/ http://site.com/iphone/ http://site.com/android http://site.com/ridiculous/

Page 11: Responsive Web Designer155.aisites.com/.../2013/07/Responsive-Web-Design... · The long and short of it is that we’re designing for more devices, more input types, more resolutions
Page 12: Responsive Web Designer155.aisites.com/.../2013/07/Responsive-Web-Design... · The long and short of it is that we’re designing for more devices, more input types, more resolutions
Page 13: Responsive Web Designer155.aisites.com/.../2013/07/Responsive-Web-Design... · The long and short of it is that we’re designing for more devices, more input types, more resolutions

It’s what some of us were going for with “liquid” web design back in the 1990s, only it doesn’t suck.

–Jeffrey Zeldman

Page 14: Responsive Web Designer155.aisites.com/.../2013/07/Responsive-Web-Design... · The long and short of it is that we’re designing for more devices, more input types, more resolutions
Page 15: Responsive Web Designer155.aisites.com/.../2013/07/Responsive-Web-Design... · The long and short of it is that we’re designing for more devices, more input types, more resolutions
Page 16: Responsive Web Designer155.aisites.com/.../2013/07/Responsive-Web-Design... · The long and short of it is that we’re designing for more devices, more input types, more resolutions

Example Sites

Page 17: Responsive Web Designer155.aisites.com/.../2013/07/Responsive-Web-Design... · The long and short of it is that we’re designing for more devices, more input types, more resolutions

Responsive Web Design by Ethan Marcotte

157 pages $9 for the e-book www.abookapart.com Go buy it now, I’ll wait

Page 18: Responsive Web Designer155.aisites.com/.../2013/07/Responsive-Web-Design... · The long and short of it is that we’re designing for more devices, more input types, more resolutions

A flexible, grid-based layout Flexible images and media Media queries, a module from the CSS3

specification.

Page 19: Responsive Web Designer155.aisites.com/.../2013/07/Responsive-Web-Design... · The long and short of it is that we’re designing for more devices, more input types, more resolutions

No more fixed sizes

Do not use px…ever. Seriously.

What about widths?

%

What about font sizes?

em

Page 20: Responsive Web Designer155.aisites.com/.../2013/07/Responsive-Web-Design... · The long and short of it is that we’re designing for more devices, more input types, more resolutions

target / context = result Left Column:

204 / 637 = .32025117 Right column:

420 /637 = .659340659

#blog .main {

float: right;

width: 420px;

}

#blog .aside {

float: left;

width: 204px;

}

#blog .main {

float: right;

width: 65.9340659%; /* 429 / 637 */

}

#blog .aside {

float: left;

width: 32.025117%; /* 204 / 637 */

}

Page 21: Responsive Web Designer155.aisites.com/.../2013/07/Responsive-Web-Design... · The long and short of it is that we’re designing for more devices, more input types, more resolutions

target / context = result

Buy this book

Page 22: Responsive Web Designer155.aisites.com/.../2013/07/Responsive-Web-Design... · The long and short of it is that we’re designing for more devices, more input types, more resolutions

The image will now resize and reflow itself proportionally

It will never be larger than its container. Will grow or shrink based on container size Can be applied to other HTML tags too:

img {

max-width: 100%;

}

img, video, object {

max-width: 100%;

}

Page 23: Responsive Web Designer155.aisites.com/.../2013/07/Responsive-Web-Design... · The long and short of it is that we’re designing for more devices, more input types, more resolutions

Used to change the layout of the page based on the size of the display.

@media screen and (max-width: 660px) {

/* any screen size 660px and less will have the following CSS

applied */

}

@media screen and (max-width: 340px) {

/* any screen size 340px and less will have the following CSS

applied */

}

@media screen and (max-width: 1100px) {

/* any screen size 1100px and less will have the following CSS

applied */

}

Page 24: Responsive Web Designer155.aisites.com/.../2013/07/Responsive-Web-Design... · The long and short of it is that we’re designing for more devices, more input types, more resolutions

Ethan Marcotte’s article that coined the term http://www.alistapart.com/articles/responsive-web-design/

Responsive Web Design, the book http://www.abookapart.com/products/responsive-web-design

Fluid Images, by Ethan Marcotte (Chapter 3 of the book) http://www.alistapart.com/articles/fluid-images/

Fluid Grids, by Ethan Marcotte http://www.alistapart.com/articles/fluidgrids/

Responsive Web Design, another article by Ethan Marcotte http://www.netmagazine.com/features/responsive-web-design

CSS3 Media Queries http://webdesignerwall.com/tutorials/css3-media-queries

Mediaqueries.es, a list of sites using Responsive Web Design techniques http://mediaqueri.es/

This presentation http://www.slideshare.net/erikkross/responsive-web-design-12143547