103
HELLO FOWD!

Design To Deployment Jon Hicks

Embed Size (px)

Citation preview

Page 1: Design To Deployment Jon Hicks

HELLO FOWD!

Page 2: Design To Deployment Jon Hicks

From Design to Deployment (a day of cheesophile.com)

HICKSDESIGN

Page 3: Design To Deployment Jon Hicks

I ♥ CHEESE

Page 4: Design To Deployment Jon Hicks

FLAT HICKS ♥ CHEESE

Page 5: Design To Deployment Jon Hicks
Page 6: Design To Deployment Jon Hicks
Page 7: Design To Deployment Jon Hicks
Page 8: Design To Deployment Jon Hicks

Breakfast:SET UP!

Page 9: Design To Deployment Jon Hicks
Page 10: Design To Deployment Jon Hicks

Setup a Local Server

MAMP HEADDRESS

Page 11: Design To Deployment Jon Hicks

Morning:CONTENT!

Page 12: Design To Deployment Jon Hicks
Page 13: Design To Deployment Jon Hicks

h1

Page 14: Design To Deployment Jon Hicks

h1h4

Page 15: Design To Deployment Jon Hicks

h1

ul

h4

Page 16: Design To Deployment Jon Hicks

h1

ul

h2

h4

Page 17: Design To Deployment Jon Hicks

h1

ul

h2 h3

h4

Page 18: Design To Deployment Jon Hicks

h1

ul

h2h2

h3

h4

Page 19: Design To Deployment Jon Hicks

h1

ul

h2h2

h3

h3h4

Page 20: Design To Deployment Jon Hicks

h1

ul

h2h2

h3

h3

h3

h4

Page 21: Design To Deployment Jon Hicks

h1

ul

h2h2

h3

h3

h3

h2

h4

Page 22: Design To Deployment Jon Hicks

h1

ul

h2h2

h4

h3

h3

h3

h2

h4

Page 23: Design To Deployment Jon Hicks

h1

ul

h2h2

h4

h4

h3

h3

h3

h2

h4

Page 24: Design To Deployment Jon Hicks

content.html

BlogReviewsCheese MapGuidesStockists Directory

News

Little Wallop launches

If you've been watching Alex James…

Page 25: Design To Deployment Jon Hicks

content.html<ul> <li><a href="">Blog</a></li> <li><a href="">Reviews</a></li> <li><a href="">Cheese Map</a></li> <li><a href="">Guides</a></li> <li><a href="">Stockists Directory</a></li></ul>

<h2>News</h2>

<h3>Little Wallop launches</h3>

<p>If you've been watching Alex James…

Page 26: Design To Deployment Jon Hicks

Doctype

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

HTML 4 Strict

XHTML Transitional

Page 27: Design To Deployment Jon Hicks

Page titles

<title>Welcome to Cheesophile!</title>

<title>Little Wallop Launches | News | Cheesophile.com

</title>

Homepage:

Subpage:

Page 28: Design To Deployment Jon Hicks

Skip Links

<a href="#content" title="Skip past the navigation" id="skipLink">Skip to the content</a>

Page 29: Design To Deployment Jon Hicks
Page 30: Design To Deployment Jon Hicks

Afternoon:STYLING!

Page 31: Design To Deployment Jon Hicks

j$kGREAT

DEBATE!EMS vs PIXELSFLUID vs

FIXEDHTML vs FLASH

Page 32: Design To Deployment Jon Hicks

Which Browsers to Support?

Page 33: Design To Deployment Jon Hicks

http://developer.yahoo.com/yui/articles/gbs/

Y! Graded Browser Support

"Support does not mean that everybody gets the same thing. Expecting two users using different browser software to have an identical experience fails to embrace or acknowledge the heterogeneous essence of the Web. "

3 2 9 6 7

Page 34: Design To Deployment Jon Hicks
Page 35: Design To Deployment Jon Hicks

HTML

CSS

Page 36: Design To Deployment Jon Hicks

HTML

basic.css

+

<link rel="stylesheet" href="css/basic.css" type="text/css" media="screen" />

CSS

Page 37: Design To Deployment Jon Hicks

HTML

=basic.css

+

<link rel="stylesheet" href="css/basic.css" type="text/css" media="screen" />

CSS

Page 38: Design To Deployment Jon Hicks

HTML

<style type="text/css"> @import/**/"css/layout.css";</style>

+

layout

CSS

Page 39: Design To Deployment Jon Hicks

typography

HTML

@import url(reset.css);@import url(typography.css);

layout

+reset

CSS

@

@++

Page 40: Design To Deployment Jon Hicks

typography

HTML

@import url(reset.css);@import url(typography.css);

layout

+reset =CSS

@

@++

Page 41: Design To Deployment Jon Hicks

HTMLtypography+ reset

layout@

@

@

Page 42: Design To Deployment Jon Hicks

HTMLtypography+ reset

layout@

@

@

<!--[if IE 6]><link href="/css/ie6.css" type="text/css" rel="stylesheet" /><![endif]-->

IE6

CSS

+

Page 43: Design To Deployment Jon Hicks

=

HTMLtypography+ reset

layout@

@

@

<!--[if IE 6]><link href="/css/ie6.css" type="text/css" rel="stylesheet" /><![endif]-->

IE6

CSS

+

Page 44: Design To Deployment Jon Hicks

Link to the CSS<link rel="stylesheet" href="css/basic.css" type="text/css" media="screen" />

<!-- comment to stop FOUC in ie6pc -->

<style type="text/css">@import/**/"css/ layout.css";</style>

<!--[if IE 6]><link href="/css/ie6.css" type="text/css" rel="stylesheet" /><![endif]-->

Page 45: Design To Deployment Jon Hicks

Reset the CSS/* Eric Meyers Reset CSS rules */html, body, div, span,applet, object, iframe,h1, h2, h3, h4, h5, h6, p, blockquote, pre,a, abbr, acronym, address, big, cite, code,del, dfn, em, font, img, ins, kbd, q, s, samp,small, strike, strong, sub, sup, tt, var,dd, dl, dt, li, ol, ul,fieldset, form, label, legend,table, caption, tbody, tfoot, thead, tr, th, td { margin: 0; padding: 0; border: 0; font-weight: inherit; font-style: inherit; font-size: 100%; line-height: 1; font-family: inherit; text-align: left; vertical-align: baseline;}a img, :link img, :visited img { border: 0;}table { border-collapse: collapse; border-spacing: 0;}ol, ul { list-style: none;}q:before, q:after,blockquote:before, blockquote:after { content: "";}

body { font-size: 75%; /* for IE */ font-family: sans-serif; line-height: 1.5em; color: #333; } html>body { font-size: 12px; line-height: 18px; } /* for the rest */

/*typography*/

a { font-weight: bold; color: #000; }a:link { }a:visited { }a:active { }a:hover { text-decoration: underline; } table, thead, tbody, tr, th, td {font-size:1em}

Page 46: Design To Deployment Jon Hicks

Snippets

img { border:0; }

input { vertical-align:middle; }

.clear:after { content: "."; display: block; height: 0; clear: both; visibility: hidden;}

Page 47: Design To Deployment Jon Hicks
Page 48: Design To Deployment Jon Hicks

Typeface Choice

Helvetica,Calibri,Verdana,Arial,Sans-serif

Page 49: Design To Deployment Jon Hicks

Typeface Choice

Roquefort, Brie, Red Leicester, Supermarket-Cheddar

Page 50: Design To Deployment Jon Hicks

Typeface Choice

Gabriel Coulet Roquefort, Roquefort, Cropwell Bishop Stilton, Stilton,Any-old-Blue-Cheese

Page 51: Design To Deployment Jon Hicks

Typeface Choice

Cornish Yarg Cheese

Cornish Yarg CheeseCornish Yarg CheeseCornish Yarg CheeseCornish Yarg Cheese

Page 52: Design To Deployment Jon Hicks

Typeface Choice

“HelveticaNeue-Heavy”,“Helvetica 85 Heavy”,Helvetica,Arial,Sans-serif

Page 53: Design To Deployment Jon Hicks

Typeface Choice

“HelveticaNeue-Heavy”,“Helvetica 85 Heavy”,Helvetica,Arial,Sans-serif

Page 54: Design To Deployment Jon Hicks

Typeface Choice

“HelveticaNeue-Heavy”,“Helvetica 85 Heavy”,Helvetica,Arial,Sans-serif

Page 55: Design To Deployment Jon Hicks

Typeface Choice

“HelveticaNeue-Heavy”,“Helvetica 85 Heavy”,Helvetica,Arial,Sans-serif

Page 56: Design To Deployment Jon Hicks

CheesophileCheesophile

letter-spacing { -1px; }

Letter spacing

Page 57: Design To Deployment Jon Hicks

Cheesophile has launched

line-height { 1.4em}

Heading Line-Height

Page 58: Design To Deployment Jon Hicks

Cheesophile has launched

line-height { 1.2em}

Heading Line-Height

Page 59: Design To Deployment Jon Hicks
Page 60: Design To Deployment Jon Hicks

Background

Page 61: Design To Deployment Jon Hicks

Background

640k

Page 62: Design To Deployment Jon Hicks

Background

640k 184k

Page 63: Design To Deployment Jon Hicks

Background

640k 184k 72k!!

Page 64: Design To Deployment Jon Hicks

Background

68k

Page 65: Design To Deployment Jon Hicks
Page 66: Design To Deployment Jon Hicks

Styling Skip Links

#skipLink { display: block; padding: 10px 20px; position: absolute; top:0; left: -999px;}

#skipLink:focus { left: 0; }

Page 67: Design To Deployment Jon Hicks

Styling Skip Links

Page 68: Design To Deployment Jon Hicks

Styling Skip Links

Page 69: Design To Deployment Jon Hicks

Two o’clockses:TEA!

Page 70: Design To Deployment Jon Hicks

29digital.net/grid/

Page 71: Design To Deployment Jon Hicks
Page 72: Design To Deployment Jon Hicks

gridlayouts.com

Page 73: Design To Deployment Jon Hicks
Page 74: Design To Deployment Jon Hicks
Page 75: Design To Deployment Jon Hicks

Grid Framework

.column { margin: 0 15px 15px 0;float: left;

}

.last { margin: 0 0 15px 0 ; }

.span1 { width: 60px; }

.span2 { width: 135px; } (etc…)

Page 76: Design To Deployment Jon Hicks

Grid Framework

<div class="column span3">…

</div>

<div class="column span4 last">…

</div>

Multiple Classes:

Page 77: Design To Deployment Jon Hicks
Page 78: Design To Deployment Jon Hicks

Transparent PNGs

8 bit Alpha PNG Transparent GIF

Page 79: Design To Deployment Jon Hicks
Page 80: Design To Deployment Jon Hicks

Transparent PNGs

Repeated 5x5px 8 bit Alpha PNG

.box { background: none;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/img/overlay.png', sizingMethod='crop');}

Page 81: Design To Deployment Jon Hicks
Page 82: Design To Deployment Jon Hicks
Page 83: Design To Deployment Jon Hicks
Page 84: Design To Deployment Jon Hicks
Page 85: Design To Deployment Jon Hicks

Evening:BUGHUNTING!

Page 86: Design To Deployment Jon Hicks
Page 87: Design To Deployment Jon Hicks
Page 88: Design To Deployment Jon Hicks
Page 89: Design To Deployment Jon Hicks
Page 90: Design To Deployment Jon Hicks

hasLayout

‘hasLayout’ is the key to understanding all your

problems in IE, but what is it?

Page 91: Design To Deployment Jon Hicks
Page 92: Design To Deployment Jon Hicks
Page 93: Design To Deployment Jon Hicks

<div>

Page 94: Design To Deployment Jon Hicks

<div>

Page 95: Design To Deployment Jon Hicks

<div> hasLayout

Page 96: Design To Deployment Jon Hicks

div, li { zoom:1;}

ie6.css

Page 97: Design To Deployment Jon Hicks

GOLDEN RULESDon’t be tempted to apply hacks globally with star selector: *

Try and understand the problem before hacking:http://www.positioniseverything.net/

Page 98: Design To Deployment Jon Hicks

‘POPULAR’ BugsElement missing? Apply position:relative to it.

Floated element with twice the amount of margin? Apply display:inline to it.

Page 99: Design To Deployment Jon Hicks
Page 100: Design To Deployment Jon Hicks

3px Text Jog

Page 101: Design To Deployment Jon Hicks
Page 102: Design To Deployment Jon Hicks

Midnight:DEPLOYED!

Page 103: Design To Deployment Jon Hicks

hicksdesign.co.uk/journal/ design-to-deploymentcheesophile.com