Transcript
Page 1: Designing for the Mobile Web

Designing for the MOBILE WEB@michaeldickhttp://m1k3.net

RefreshBmoreDec. 2010

Page 2: Designing for the Mobile Web

@michaeldick

ncluda creative web design agency

cssiphone.comweb inspiration for mobile

Page 3: Designing for the Mobile Web

1) Design & UX

2) Viewports

3) Detection

4) Tips & Tricks

5) Questions & Discussion

Page 4: Designing for the Mobile Web

MobileWeb

2.0

* Compare it to* the browser wars* from the 90’s

Page 5: Designing for the Mobile Web

CSS = CSS

HTML = HTML

JS = JS

Page 6: Designing for the Mobile Web

(Technical only, not applied to the user interaction)

Page 7: Designing for the Mobile Web

Conte__t is

king

X

Page 8: Designing for the Mobile Web

is the iPad “Mobile”

?

Page 9: Designing for the Mobile Web

It’s so much more intimate than a laptop“

”— Steve Jobs

Page 10: Designing for the Mobile Web

Jobs demonstrated the iPad while sitting on a couch.

Page 11: Designing for the Mobile Web

Good.

Page 12: Designing for the Mobile Web

Good.

Page 13: Designing for the Mobile Web

Good.

Page 14: Designing for the Mobile Web

:(

Page 15: Designing for the Mobile Web

Good.

Page 16: Designing for the Mobile Web

Design&

Experience

Page 17: Designing for the Mobile Web
Page 18: Designing for the Mobile Web
Page 19: Designing for the Mobile Web
Page 20: Designing for the Mobile Web
Page 21: Designing for the Mobile Web
Page 22: Designing for the Mobile Web
Page 23: Designing for the Mobile Web
Page 24: Designing for the Mobile Web

BAD EXPERIENCE

Page 25: Designing for the Mobile Web

Graceful Degradation

Page 26: Designing for the Mobile Web
Page 27: Designing for the Mobile Web

Desktop

Page 28: Designing for the Mobile Web

Mobile “2.0”

Page 29: Designing for the Mobile Web

Mobile “WAP”

Page 30: Designing for the Mobile Web

Opt-in / Opt-out

Page 31: Designing for the Mobile Web

opt-in

Page 32: Designing for the Mobile Web

opt to go back

Page 33: Designing for the Mobile Web

opt-out

Page 34: Designing for the Mobile Web

opt to go back

Page 35: Designing for the Mobile Web

opt to go back

Page 36: Designing for the Mobile Web

Viewportsand why fixed positioning doesn’t

work!

Page 37: Designing for the Mobile Web
Page 38: Designing for the Mobile Web
Page 39: Designing for the Mobile Web
Page 40: Designing for the Mobile Web

<metaname="viewport"content=""

/>(at its most basic state)

Page 41: Designing for the Mobile Web

width = ;

initial-scale = ;

maximum-scale = ;

user-scalable = ;

content=”

Page 42: Designing for the Mobile Web
Page 43: Designing for the Mobile Web

VIE

WP

OR

T S

TAR

TS

Page 44: Designing for the Mobile Web

VIE

WP

OR

T E

ND

S

Page 45: Designing for the Mobile Web

VIE

WP

OR

T

NOT!

Page 46: Designing for the Mobile Web

Device

Detection

Page 47: Designing for the Mobile Web

Specificvs

Optimized (and responsive)

Page 48: Designing for the Mobile Web

Optimized Specific

new markupsame markup

both use new CSS

Page 49: Designing for the Mobile Web

<link rel="stylesheet" href=""

media="only screen and(max-device-width: 480px)"/>

Stylesheet (HTML)

Page 50: Designing for the Mobile Web

@media only screen and (max-device-width: 480px){ /* iphone css goes here */}

@media (CSS)

Page 51: Designing for the Mobile Web

@import url(‘mobile.css’) only screen and (max-device-width: 480px);

@import (CSS)

Page 52: Designing for the Mobile Web

User Agent Sniffing

JS: navigator.userAgent

PHP: $_SERVER['HTTP_USER_AGENT']

Page 54: Designing for the Mobile Web

require('detect.php');$mobile = detect();

Page 55: Designing for the Mobile Web

Orientation

Detection

Page 56: Designing for the Mobile Web
Page 57: Designing for the Mobile Web
Page 58: Designing for the Mobile Web

<body id=”portrait”>

Page 59: Designing for the Mobile Web

body#portrait{ width:320px; color:green;}

Page 60: Designing for the Mobile Web

body#landscape{ width:480px; color:red;}

Page 61: Designing for the Mobile Web

Quick

Tips & Tricks

Page 62: Designing for the Mobile Web

HTML 5 Inputs

type=”url” type=”email”

type=”tel”type=”number”

Page 63: Designing for the Mobile Web

Disable..

autocorrect="off"

autocapitalize="off"

autocomplete="off"

Page 64: Designing for the Mobile Web

uselarge hit areas

Page 65: Designing for the Mobile Web
Page 66: Designing for the Mobile Web

BAD HIT AREAS

Page 67: Designing for the Mobile Web

body {

-webkit-text-size-adjust:none;

}

Keeps the text from adjusting on orientation change

Page 68: Designing for the Mobile Web

window.scrollTo(0, 1);

<body onload=”

”>

Hide the Address Bar onload

Page 69: Designing for the Mobile Web

Don’t use fixed widths/heights

Page 70: Designing for the Mobile Web
Page 71: Designing for the Mobile Web
Page 72: Designing for the Mobile Web

Discussion&

Questions

Page 73: Designing for the Mobile Web

✓ iphone detection✓ iphone orientation javascript✓ iphone psd✓ detect mobile browsers✓ android / iphone sdk✓ mobile safari dev center *

Google Keywords

Page 74: Designing for the Mobile Web

Thank You.

@michaeldickhttp://m1k3.net


Top Related