Slide 1

Slide 1 text

Workshop originally presented by Andy Clarke during 2007–2008 For a beautiful web Andy Clarke is a digital designer, speaker, and writer whose designs have helped companies around the world to increase their sales pipeline and revenue, and charities to increase donations. He founded Stuff & Nonsense and has consulted and designed for clients including Disney Store UK, Fairfax Media, Home Office (UK), Greenpeace, ISO, SAP, STV, SunLife, WIPO, and WWF. He works on creative website and digital product designs and provides ongoing creative direction. He coaches agencies and mentors designers on dealing with clients, and delivering creative projects. If you’re looking to design better digital products and websites, develop a design system or style guide, or want to understand how design can help your business, you should talk to him. Stuff & Nonsense Ltd. Eversleigh, Lon Capel, Gwaenysgor, Flintshire, LL18 6EJ, UK For work enquiries go to stuffandnonsense.co.uk or call +44 (0)1745 851848

Slide 2

Slide 2 text

TRANSCENDING
CSS
 ‘FOR
A
BEAUTIFUL
WEB’ WORKSHOP
SERIES
2007‐8

Slide 3

Slide 3 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE WELCOME

Slide 4

Slide 4 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE TRANSCENDING
CSS The
Fine
Art
Of
Web
Design by
Andy
Clarke Published
by
New
Riders
2006

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE “
We've
arrived
at
a
situation
where
beautiful
sites
with
 beautiful
code
are
being
produced
by
the
hundreds;
every
 month,
every
week,
every
day.
It's
no
longer
a
myth
that
 you
can
produce
a
stunning
site
with
Web
Standards.” CAMERON
ADAMS WEBSTANDARDSAWARDS.COM W E B 
 S TA N D A R D S 
 A W A R D S

Slide 9

Slide 9 text

THEINVASIONMOVIE.WARNERBROS.COM

Slide 10

Slide 10 text

KYLIEMINOGUE.UK.COM

Slide 11

Slide 11 text

NIKE.COM

Slide 12

Slide 12 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE TRANSCENDENT
CSS

Slide 13

Slide 13 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE ‐ Not
all
browsers
see
the
same
design ‐ Use
all
available
CSS
selectors ‐ Use
CSS3
where
appropriate ‐ Use
JavaScript
and
the
DOM
to
plug
holes
in
CSS ‐ Use
semantic
naming
and
Microformats P R I N C I P L E S 
 O F 
 T R A N S C E N D E N T 
 C S S

Slide 14

Slide 14 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE ‐ Not
all
browsers
see
the
same
design ‐ Use
all
available
CSS
selectors ‐ Use
CSS3
where
appropriate ‐ Use
JavaScript
and
the
DOM
to
plug
holes
in
CSS ‐ Use
semantic
naming
and
Microformats P R I N C I P L E S 
 O F 
 T R A N S C E N D E N T 
 C S S

Slide 15

Slide 15 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE ‐ Not
all
browsers
see
the
same
design ‐ Use
all
available
CSS
selectors ‐ Use
CSS3
where
appropriate ‐ Use
JavaScript
and
the
DOM
to
plug
holes
in
CSS ‐ Use
semantic
naming
and
Microformats P R I N C I P L E S 
 O F 
 T R A N S C E N D E N T 
 C S S

Slide 16

Slide 16 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE ‐ Not
all
browsers
see
the
same
design ‐ Use
all
available
CSS
selectors ‐ Use
CSS3
where
appropriate ‐ Use
JavaScript
and
the
DOM
to
plug
holes
in
CSS ‐ Use
semantic
naming
and
Microformats P R I N C I P L E S 
 O F 
 T R A N S C E N D E N T 
 C S S

Slide 17

Slide 17 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE ‐ Not
all
browsers
see
the
same
design ‐ Use
all
available
CSS
selectors ‐ Use
CSS3
where
appropriate ‐ Use
JavaScript
and
the
DOM
to
plug
holes
in
CSS ‐ Use
semantic
naming
and
Microformats P R I N C I P L E S 
 O F 
 T R A N S C E N D E N T 
 C S S

Slide 18

Slide 18 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE NOT
ALL
BROWSERS
 SEE
THE
SAME
DESIGN

Slide 19

Slide 19 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE “MOSe
Enhancement:
The
key
to
the
MOSe
method
is
 somewhat
similar
to
how
NN4
page
design
developed
as
 CSS
became
more
prevalent.
After
creating
a
basic,
 functioning
page
in
IE,
you
add
extra
functionality
with
 these
selectors.” DAVE
SHEA MEZZOBLUE.COM/ARCHIVES/2003/06/25/MOSE/ P R O G R E S S I V E 
 E N H A N C E M E N T

Slide 20

Slide 20 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE “Progressive
enhancement
is
an
approach
to
web
design
 that
builds
documents
for
the
least
capable
devices
first,
 then
moves
on
to
enhance
those
documents
with
 separate
logic
for
presentation,
in
ways
that
do
not
place
 an
undue
burden
on
baseline
devices
but
which
allow
a
 richer
experience
for
those
users
with
modern
graphical
 browser
software.” STEVEN
CHAMPEON HESKETH.COM/PUBLICATIONS/INCLUSIVE_WEB_DESIGN_FOR_THE_FUTURE/ P R O G R E S S I V E 
 E N H A N C E M E N T

Slide 21

Slide 21 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE “Progressive
enhancement
is
an
approach
to
web
design
 that
builds
documents
for
the
least
capable
devices
first,
 then
moves
on
to
enhance
those
documents
with
 separate
logic
for
presentation,
in
ways
that
do
not
place
 an
undue
burden
on
baseline
devices
but
which
allow
a
 richer
experience
for
those
users
with
modern
graphical
 browser
software.” STEVEN
CHAMPEON HESKETH.COM/PUBLICATIONS/INCLUSIVE_WEB_DESIGN_FOR_THE_FUTURE/ P R O G R E S S I V E 
 E N H A N C E M E N T

Slide 22

Slide 22 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE P R O G R E S S I V E 
 E N H A N C E M E N T Applying
progressive
enhancement
across
technologies: ‐ CSS
for
visual
styling ‐ JavaScript
and
the
DOM
for
behavior ‐ AJAX
and
related
sets
of
technologies

Slide 23

Slide 23 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE P R O G R E S S I V E 
 E N H A N C E M E N T Applying
progressive
enhancement
across
technologies: ‐ CSS
for
visual
styling ‐ JavaScript
and
the
DOM
for
behavior ‐ AJAX
and
related
sets
of
technologies

Slide 24

Slide 24 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE P R O G R E S S I V E 
 E N H A N C E M E N T Applying
progressive
enhancement
across
technologies: ‐ CSS
for
visual
styling ‐ JavaScript
and
the
DOM
for
behavior ‐ AJAX
and
related
sets
of
technologies

Slide 25

Slide 25 text

CSSZENGARDEN.COM
DESIGN
BY
MIKE
DAVIDSON

Slide 26

Slide 26 text

CSSZENGARDEN.COM
DESIGN
BY
EGOR
KLOOS

Slide 27

Slide 27 text

CSSZENGARDEN.COM
DESIGN
BY
SHAUN
INMAN

Slide 28

Slide 28 text

No content

Slide 29

Slide 29 text

No content

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

No content

Slide 32

Slide 32 text

DEVELOPER.YAHOO.COM/YUI/ARTICLES/GBS/

Slide 33

Slide 33 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE G R A D E D 
 B R O W S E R 
 S U P P O R T “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.” NATE
KOECHLEY DEVELOPER.YAHOO.COM/YUI/ARTICLES/GBS/GBS.HTML

Slide 34

Slide 34 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE “Sony
is
a
registered
trademark
of
Sony
Corporation,
Japan”

Slide 35

Slide 35 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE “Image
courtesy
of
Apple
Inc.”

Slide 36

Slide 36 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE

Slide 37

Slide 37 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE CONTENT‐OUT MARKUP

Slide 38

Slide 38 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE “Some
people
say
I've
ruined
the
Web,
and
to
them
it's
 true.
[...]
I
ruined
the
Web
by
mixing
chocolate
and
 peanut
butter
so
they
could
never
become
unmixed.
I
 committed
the
hangable
offense
of
mixing
structure
with
 presentation.” DAVID
SIEGAL XML.COM/PUB/A/W3J/S1.PEOPLE.HTML P R E S E N TAT I O N A L 
 M A R K U P

Slide 39

Slide 39 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE M E A N I N G F U L 
 M A R K U P 
=
heading


=
paragraph

    
=
unordered
list
      
=
ordered
list
      
=
definition
list
(name/value
pairs)
      
=
block
quotation

Slide 40

Slide 40 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE F O R G O T T E N 
 H T M L 
 E L E M E N T S 
=
deleted
text 
=
inserted
text 
=
computer
or
programming
related 
=
inline
quotations
 
=
citation
URLs

Slide 41

Slide 41 text

No content

Slide 42

Slide 42 text

No content

Slide 43

Slide 43 text

Slide 44

Slide 44 text

No content

Slide 45

Slide 45 text

Slide 46

Slide 46 text

No content

Slide 47

Slide 47 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE

Slide 48

Slide 48 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE

Slide 49

Slide 49 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE

Slide 50

Slide 50 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE

Slide 51

Slide 51 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE

Slide 52

Slide 52 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE

Slide 53

Slide 53 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE MICROFORMATS “We
need
more
microformats.” Bill
Gates
in
an
interview
with
Tim
O’Reilly
at
MIX06,
Las
Vegas

Slide 54

Slide 54 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE “Designed
for
humans
first
and
machines
second,
 microformats
are
a
set
of
simple,
open
data
formats
built
 upon
existing
and
widely
adopted
standards.” MICROFORMATS.ORG/ABOUT W H AT 
 A R E 
 M I C R O F O R M AT S ?

Slide 55

Slide 55 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE S E M A N T I C 
 W E B ‐ Semantics
for
machines
first,
people
second ‐ Access
to
multiple
sources
and
global
sharing
of
data ‐ RDF
(Resource
Description
Format)
 ‐ OWL
(Web
Ontology
Language) ‐ Implementations,
applications
and
user
agents
are
years
away
 ‐ Relies
on
emerging
technologies

Slide 56

Slide 56 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE ‐ Solve
a
specific
problem ‐ A
low
barrier
to
entry ‐ Design
for
humans
first,
machines
second ‐ Reuse
building
blocks
from
existing
standards ‐ Are
modular
and
embeddable ‐ Encourage
decentralised
content
and
services P R I N C I P L E S 
 O F 
 M I C R O F O R M AT S

Slide 57

Slide 57 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE H C A R D For
marking
up
contact
information
for
people
and
 organisations H C A L E N D A R For
marking
up
information
about
events
such
as
 meetings,
conferences
and
concerts H R E V I E W For
marking
up
reviews
including
products
and
events
 W H AT 
 A R E 
 M I C R O F O R M AT S ?

Slide 58

Slide 58 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE H C A R D For
marking
up
contact
information
for
people
and
 organisations H C A L E N D A R For
marking
up
information
about
events
such
as
 meetings,
conferences
and
concerts H R E V I E W For
marking
up
reviews
including
products
and
events
 W H AT 
 A R E 
 M I C R O F O R M AT S ?

Slide 59

Slide 59 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE H C A R D For
marking
up
contact
information
for
people
and
 organisations H C A L E N D A R For
marking
up
information
about
events
such
as
 meetings,
conferences
and
concerts H R E V I E W For
marking
up
reviews
including
products
and
events
 W H AT 
 A R E 
 M I C R O F O R M AT S ?

Slide 60

Slide 60 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE P U B L I S H E R S 
 U S I N G 
 M I C R O F O R M AT S C O R K D 
 (corkd.com) Publishes
wine
reviews
using
hReview,
profiles
using
 hCard
and
relationships
using
XFN F L I C K R 
 (flickr.com) Geotagging
of
photos,
publishes
profiles
using
hCard L A S T. F M 
 (last.fm) Publishes
concert
information
using
hCalendar U P C O M I N G 
 (upcoming.org) Publishes
event
information
using
hCalendar
and
 profiles
using
hCard

Slide 61

Slide 61 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE P U B L I S H E R S 
 U S I N G 
 M I C R O F O R M AT S C O R K D 
 (corkd.com) Publishes
wine
reviews
using
hReview,
profiles
using
 hCard
and
relationships
using
XFN F L I C K R 
 (flickr.com) Geotagging
of
photos,
publishes
profiles
using
hCard L A S T. F M 
 (last.fm) Publishes
concert
information
using
hCalendar U P C O M I N G 
 (upcoming.org) Publishes
event
information
using
hCalendar
and
 profiles
using
hCard

Slide 62

Slide 62 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE P U B L I S H E R S 
 U S I N G 
 M I C R O F O R M AT S C O R K D 
 (corkd.com) Publishes
wine
reviews
using
hReview,
profiles
using
 hCard
and
relationships
using
XFN F L I C K R 
 (flickr.com) Geotagging
of
photos,
publishes
profiles
using
hCard L A S T. F M 
 (last.fm) Publishes
concert
information
using
hCalendar U P C O M I N G 
 (upcoming.org) Publishes
event
information
using
hCalendar
and
 profiles
using
hCard

Slide 63

Slide 63 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE P U B L I S H E R S 
 U S I N G 
 M I C R O F O R M AT S C O R K D 
 (corkd.com) Publishes
wine
reviews
using
hReview,
profiles
using
 hCard
and
relationships
using
XFN F L I C K R 
 (flickr.com) Geotagging
of
photos,
publishes
profiles
using
hCard L A S T. F M 
 (last.fm) Publishes
concert
information
using
hCalendar U P C O M I N G 
 (upcoming.org) Publishes
event
information
using
hCalendar
and
 profiles
using
hCard

Slide 64

Slide 64 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE hCARD

Slide 65

Slide 65 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE Malarkey's
a
Modern
kinda
guy
who
loves
 to
annoy
his
neighbours
in
Gwaenysgor
 with
his
collection
of
sixties
Mod
and
 ska
classics.
When
he's
not
polishing
the
 mirrors
on
his
scooter,
he
dreams
of
 having
Paul
Weller
'round
for
tea.
Since
 signing
to
Stuff
and
Nonsense
Records,
 Malarkey
can
be
reached
by
email
or
by
 phone
on
+44
(0)1745
851848. M I C R O F O R M AT S : 
 H C A R D

Slide 66

Slide 66 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE Malarkey's
a
Modern
kinda
guy
who
loves
 to
annoy
his
neighbours
in
Gwaenysgor
 with
his
collection
of
sixties
Mod
and
 ska
classics.
When
he's
not
polishing
the
 mirrors
on
his
scooter,
he
dreams
of
 having
Paul
Weller
'round
for
tea.
Since
 signing
to
Stuff
and
Nonsense
Records,
 Malarkey
can
be
reached
by
email
or
by
 phone
on
+44
(0)1745
851848. M I C R O F O R M AT S : 
 H C A R D

Slide 67

Slide 67 text

TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE BEGIN:VCARD FN:Andy
Clarke. ORG:Stuff
and
Nonsense
Records; ADR: Gwaenysgor; Flintshire; LL18
6EP; TEL:(0)1745
851848 EMAIL:[email protected] END:VCARD M I C R O F O R M AT S : 
 V C A R D

Slide 68

Slide 68 text

M I C R O F O R M AT S : 
 V C A R D A
vCard
in
Apple’s
Address
Book
application

Slide 69

Slide 69 text

Andy
Clarke Stuff
and
Nonsense
Records Gwaenysgor,
 Flintshire,
 LL18
6EP +44
(0)1745
851848 Email
Malarkey
M I C R O F O R M AT S : 
 H C A R D

Slide 70

Slide 70 text

M I C R O F O R M AT S : 
 H C A R D

Malarkey's
a
Modern
kinda
guy
 who
loves
to
annoy
his
neighbours
in
 Gwaenysgor
with
his
 collection
of
sixties
Mod
and
ska
classics.
Since
 signing
to
Stuff
and
Nonsense
 Records,
Malarkey
can
be
reached
by
 email
or
by
phone
on
 +44
(0)1745
851848.

Slide 71

Slide 71 text

No content

Slide 72

Slide 72 text

Slide 73

Slide 73 text

M I C R O F O R M AT S : 
 H C A R D

Slide 74

Slide 74 text

  • Colly
Wobbles

    Colly
Wobbles...

    c/o
Stuff
and
Nonsense
Records Gwaenysgor,
 Flintshire,
 LL18
6EP +44
(0)1745
851848 Email
Colly
  • M I C R O F O R M AT S : 
 H C A R D

    Slide 75

    Slide 75 text

    No content

    Slide 76

    Slide 76 text

    No content

    Slide 77

    Slide 77 text

    No content

    Slide 78

    Slide 78 text

  • Colly
Wobbles

    c/o
Stuff
and
Nonsense
Records Gwaenysgor,
 Flintshire,
 LL18
6EP +44
(0)1745
851848 Email
Colly
  • M I C R O F O R M AT S : 
 H C A R D

    Slide 79

    Slide 79 text

    No content

    Slide 80

    Slide 80 text

    No content

    Slide 81

    Slide 81 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE hCALENDAR

    Slide 82

    Slide 82 text

    No content

    Slide 83

    Slide 83 text

    MEN
Arena,
 UK
on
September
1st
2007

    M I C R O F O R M AT S : 
 H C A L E N D A R

    Slide 84

    Slide 84 text

    MEN
Arena,
 UK
on
September
1st
2007

    MEN
Arena
Manchester
Box
Office
    M I C R O F O R M AT S : 
 H C A L E N D A R

    Slide 85

    Slide 85 text

    Tickets
available
from

    MEN
Arena
Manchester
Box
Office Victoria
Station,
Hunts
Bank,
 Manchester,
 M3
1AR UK +44
(0)844
847
8000 http://www.men‐arena.com/
    M I C R O F O R M AT S : 
 H C A L E N D A R

    Slide 86

    Slide 86 text

    No content

    Slide 87

    Slide 87 text

    No content

    Slide 88

    Slide 88 text

    No content

    Slide 89

    Slide 89 text

    The
Nonsense
Robots
atCarling
Academy
Brixton September
2nd
 2007 Carling
Academy
Brixton
Box
Office London,
 UK +44
(0)7771
3000 http://www.brixton‐academy.co.uk/ M I C R O F O R M AT S : 
 H C A L E N D A R

    Slide 90

    Slide 90 text

    No content

    Slide 91

    Slide 91 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE hREVIEW

    Slide 92

    Slide 92 text

    No content

    Slide 93

    Slide 93 text

  • Nonsense
Robots
at
MEN

    Making
Ska
accessible

    Reviewed
on
August
1st
2007

    The
music
they
play
is
a
blend
of
ska/disco/funk.
 Whatever
it
is,
it
sounds
great.

    Jason
Santa
Maria

  • M I C R O F O R M AT S : 
 H R E V I E W

    Slide 94

    Slide 94 text

  • Nonsense
Robots
at
MEN

    Making
Ska
accessible

    Reviewed
on
August
1st
2007

    The
music
they
play
is
a
blend
of
ska/disco/funk...

    Jason
Santa
Maria
  • M I C R O F O R M AT S : 
 H R E V I E W

    Slide 95

    Slide 95 text

    No content

    Slide 96

    Slide 96 text

    No content

    Slide 97

    Slide 97 text

    M I C R O F O R M AT S : 
 H R E V I E W

    Making
Ska
accessible

    Live
at
MEN
Arena
on
 September
23th

    Helpful?

 Yes
|
 No
|
 Bookmark

    Slide 98

    Slide 98 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE hATOM

    Slide 99

    Slide 99 text

    No content

    Slide 100

    Slide 100 text

    M I C R O F O R M AT S : 
 AT O M Stomping
Robots What
is
ska? Ska
combines
elements
of
Caribbean
mento
and
calypso
 with
American
jazz
and
rhythm
and
blues.
It
is
 characterised
by
a
walking
bass
line,
accented
guitar,
 or
piano
rhythms
on
the
offbeat,
and
in
some
cases,
 jazz‐like
horn
riffs. Jina
Bee

    Slide 101

    Slide 101 text

    M I C R O F O R M AT S : 
 AT O M

    Stomping
Robots

    What
is
ska?

    Ska
combines
elements
of
Caribbean
mento
and
 calypso
with
American
jazz
and
rhythm
and
blues. It
is
characterised
by
a
walking
bass
line,
accented
 guitar,
or
piano
rhythms
on
the
offbeat,
and
in
some
 cases,
jazz‐like
horn
riffs.

    Jina
Bee

    Slide 102

    Slide 102 text

    No content

    Slide 103

    Slide 103 text

    Slide 104

    Slide 104 text

    M I C R O F O R M AT S : 
 AT O M

    Stomping
Robots

    What
is
ska?

    Ska
combines
elements
 of
Caribbean
mento
and
calypso
with
American
jazz
and
 rhythm
and
blues.
It
is
characterised
by
a
 walking
bass
line,
accented
guitar,
or
piano
rhythms
 on
the
offbeat,
and
in
some
cases,
jazz‐like
horn
 riffs.

    Jina
Bee

    Slide 105

    Slide 105 text

    M I C R O F O R M AT S : 
 AT O M

    September
21st
2007
|
 Bookmark

    Slide 106

    Slide 106 text

    No content

    Slide 107

    Slide 107 text

    No content

    Slide 108

    Slide 108 text

    No content

    Slide 109

    Slide 109 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE MICROFORMATS Empowering
Your
Markup
for
Web
2.0 by
John
Allsopp Published
by
Friends
Of
Ed
2007

    Slide 110

    Slide 110 text

    TRANSCENDING
CSS
 ‘FOR
A
BEAUTIFUL
WEB’ WORKSHOP
SERIES
2007‐8

    Slide 111

    Slide 111 text

    TRANSCENDING
CSS
 ‘FOR
A
BEAUTIFUL
WEB’ WORKSHOP
SERIES
2007‐8

    Slide 112

    Slide 112 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE MODERN
CSS
SELECTORS

    Slide 113

    Slide 113 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE “A
selector
represents
a
structure.
This
structure
can
be
 used
as
a
condition
(e.g.
in
a
CSS
rule)
that
determines
 which
elements
a
selector
matches
in
the
document
tree,
 or
as
a
flat
description
of
the
HTML
or
XML
fragment
 corresponding
to
that
structure.” W3.ORG/TR/2001/2001/CR‐CSS3‐SELECTORS‐20011113/#SELECTORS C S S 
 S E L E C T O R S

    Slide 114

    Slide 114 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE “A
selector
enables
a
web
designer
 and
developer
to
make
a
lot
of
cool
 stuff
out
of
very
little.” ANDY
CLARKE C S S 
 S E L E C T O R S

    Slide 115

    Slide 115 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE C S S 
 S E L E C T O R S ‐ Element
selectors

(
p
{
/*
rules
*/

}

) ‐ Class
selectors

(
.vcard
{
/*
rules
*/

}

) ‐ ID
selectors

(
#content
{
/*
rules
*/
}

) ‐ Pseudo‐class
selectors
(
a:link
{
/*
rules
*/

}

) ‐ Child
selectors
(
div
>
a
{
/*
rules
*/

}

) ‐ Adjacent
selectors
(
h2
+
p
{
/*
rules
*/

}

) ‐ Attribute
selectors
(
div[class="vcard"]
{
/*
rules
*/

}

) ‐ Pseudo‐elements
(
li:last‐child
{
/*
rules
*/

}

)

    Slide 116

    Slide 116 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE C S S 
 S E L E C T O R S ‐ Element
selectors

(
p
{
/*
rules
*/

}

) ‐ Class
selectors

(
.vcard
{
/*
rules
*/

}

) ‐ ID
selectors

(
#content
{
/*
rules
*/
}

) ‐ Pseudo‐class
selectors
(
a:link
{
/*
rules
*/

}

) ‐ Child
selectors
(
div
>
a
{
/*
rules
*/

}

) ‐ Adjacent
selectors
(
h2
+
p
{
/*
rules
*/

}

) ‐ Attribute
selectors
(
div[class="vcard"]
{
/*
rules
*/

}

) ‐ Pseudo‐elements
(
li:last‐child
{
/*
rules
*/

}

)

    Slide 117

    Slide 117 text

    C H I L D 
 S E L E C T O R S
  • Live
at
Wembley
Arena

    Reviewed
on
August
1st
2007

    Live
at
Wembley
Arena
on
September
23th

    The
Nonsense
Robots
did
an
excellent
job
of
 mixing
ska
with
some
funky
reggae
beats.

  • li
>
img
{
float
:
left;
}

    Slide 118

    Slide 118 text

    A D J A C E N T 
 S E L E C T O R S
  • Live
at
Wembley
Arena

    Reviewed
on
August
1st
2007

    Live
at
Wembley
Arena
on
September
23th

    The
Nonsense
Robots
did
an
excellent
job
of
 mixing
ska
with
some
funky
reggae
beats.

  • h4
+
p
{
padding‐top
:
0;
}

    Slide 119

    Slide 119 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE AT T R I B U T E 
 S E L E C T O R S Style
an
element
either
based
 on
whether
an
element
has
an
 attribute
name
such
as
href
or
 based
on
the
attribute
value. img[alt] a[title] li[class="vcard"] div[id="content_main"]

    Slide 120

    Slide 120 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE AT T R I B U T E 
 S E L E C T O R S Style
an
element
either
based
 on
whether
an
element
has
an
 attribute
name
such
as
href
or
 based
on
the
attribute
value. img[alt] a[title] li[class="vcard"] div[id="content_main"]

    Slide 121

    Slide 121 text

    No content

    Slide 122

    Slide 122 text

    AT T R I B U T E 
 S E L E C T O R S #siteinfo
a[rel="self"]
{
 display
:
block;
 width
:
97px;
 height
:
72px;
 position
:
absolute;
 top
:
‐1px;
 right
:
15px;
 background
:
url(top.png)
no‐repeat;
 text‐indent
:
‐9999px;
}

    Slide 123

    Slide 123 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE AT T R I B U T E 
 S E L E C T O R S Style
an
element
either
based
 on
whether
an
element
has
an
 attribute
name
such
as
href
or
 based
on
the
attribute
value. img[alt] a[title] li[class="vcard"] div[id="content_main"]

    Slide 124

    Slide 124 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE AT T R I B U T E 
 S E L E C T O R S Style
an
element
either
based
 on
whether
an
element
has
an
 attribute
name
such
as
href
or
 based
on
the
attribute
value. img[alt] a[title] li[class="vcard"] div[id="content_main"]

    Slide 125

    Slide 125 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE AT T R I B U T E 
 S E L E C T O R S Style
an
element
either
based
 on
whether
an
element
has
an
 attribute
name
such
as
href
or
 based
on
the
attribute
value. img[alt] a[title] li[class="vcard"] div[id="content_main"]

    Slide 126

    Slide 126 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE C S S 
 2 . 1 
 S P E C I F I C I T Y Example Style
in
document
 (inline
style) #
of
ID
selectors #
of
class
selectors #
of
Element
(type)
 selectors li 0 0 0 1 li.vcard 0 0 1 1 #content
li.vcard 0 1 1 1

    Slide 127

    Slide 127 text

    No content

    Slide 128

    Slide 128 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE AT T R I B U T E 
 S U B ‐ S T R I N G 
 S E L E C T O R S E[foo~="bar"] an
E
element
whose
"foo"
attribute
value
is
a
list
 of
space‐separated
values,
one
of
which
is
exactly
 equal
to
"bar" E[foo^="bar"] an
E
element
whose
"foo"
attribute
value
begins
 exactly
with
the
string
"bar" E[foo$="bar"] an
E
element
whose
"foo"
attribute
value
ends
 exactly
with
the
string
"bar" E[foo*="bar"] an
E
element
whose
"foo"
attribute
value
contains
 the
substring
"bar"

    Slide 129

    Slide 129 text

    AT T R I B U T E 
 S U B ‐ S T R I N G 
 S E L E C T O R S

    Slide 130

    Slide 130 text

    AT T R I B U T E 
 S U B ‐ S T R I N G 
 S E L E C T O R S
  • Sushi
Ska

    The
most
played
album
on
my
iPod

    Sushi
Ska
is
a
unique
collection
of
Jamaican
influenced
ska.
 There
are
few
collections
of
ska
that
include
a
good
cross
 section
of
the
earliest
ska
classics
from
Jamaica
in
the
Sixties
 in
the
same
collection
as
music
of
the
Great
Ska
Revival
in
the
 United
Kingdom
in
the
Eighties.

    Bookmark

  • Slide 131

    Slide 131 text

    AT T R I B U T E 
 S U B ‐ S T R I N G 
 S E L E C T O R S
  • Sushi
Ska

    The
most
played
album
on
my
iPod

    Sushi
Ska
is
a
unique
collection
of
Jamaican
influenced
ska.
 There
are
few
collections
of
ska
that
include
a
good
cross
 section
of
the
earliest
ska
classics
from
Jamaica
in
the
Sixties
 in
the
same
collection
as
music
of
the
Great
Ska
Revival
in
the
 United
Kingdom
in
the
Eighties.

    Bookmark

  • Slide 132

    Slide 132 text

    AT T R I B U T E 
 S U B ‐ S T R I N G 
 S E L E C T O R S Bookmark ul
>
li
{
position
:
relative;
} li
>
h3,
li
>
h4,
li
>
blockquote

{
margin‐left
:
100px;
} a[href^="http://www.tantek.com"]:before
{
 content
:
url(tantek.png); position
:
absolute; top
:
0; left
:
0; }

    Slide 133

    Slide 133 text

    AT T R I B U T E 
 S U B ‐ S T R I N G 
 S E L E C T O R S

    Slide 134

    Slide 134 text

    AT T R I B U T E 
 S U B ‐ S T R I N G 
 S E L E C T O R S Bookmark ul
>
li
{
position
:
relative;
} li
>
h3,
li
>
h4,
li
>
blockquote

{
margin‐left
:
100px;
} a[href^="http://www.tantek.com"]:before
{
 content
:
url(tantek.png); position
:
absolute; top
:
0; left
:
0; }

    Slide 135

    Slide 135 text

    AT T R I B U T E 
 S U B ‐ S T R I N G 
 S E L E C T O R S Bookmark ul
>
li
{
position
:
relative;
} li
>
h3,
li
>
h4,
li
>
blockquote

{
margin‐left
:
100px;
} a[href^="http://www.tantek.com"]:before
{
 content
:
url(tantek.png); position
:
absolute; top
:
0; left
:
0; }

    Slide 136

    Slide 136 text

    AT T R I B U T E 
 S U B ‐ S T R I N G 
 S E L E C T O R S

    Slide 137

    Slide 137 text

    P S E U D O 
 E L E M E N T S
    • Availability:
In
stock
    • Price:
£9.99

    Slide 138

    Slide 138 text

    P S E U D O 
 E L E M E N T S #content
ul
li
{
display
:
inline;
padding
:
0
10px;
 border‐right
:
1px
solid
#333;
} #content
ul
li:last‐child
{
padding‐right
:
0;
 border‐right‐width
:
0;
}

    Slide 139

    Slide 139 text

    P S E U D O 
 E L E M E N T S p:first‐line
{
 font‐size
:
110%;
 font‐weight
:
bold;
 }

    Slide 140

    Slide 140 text

    P S E U D O 
 E L E M E N T S p:first‐line
{
 font‐size
:
110%;
 font‐weight
:
bold;
 }

    Slide 141

    Slide 141 text

    P S E U D O 
 E L E M E N T S p:first‐line
{
 font‐size
:
110%;
 font‐weight
:
bold;
 }

    Slide 142

    Slide 142 text

    P S E U D O 
 E L E M E N T S p:first‐letter
{
 font‐size
:
400%;
 font‐weight
:
bold;
 }

    Slide 143

    Slide 143 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE C O M B I N E D 
 S E L E C T O R S id
+
child #nav‐main
>
li
{
/*
rules
*/

} descendent
+
class
+
adjacent .nav
ul
li
+
li
{
/*
rules
*/

} id
+
descendent
+
element
+
pseudo
class #nav‐main
li:hover
{
/*
rules
*/

} descendent
+
id
+
child
+
attribute #nav‐main
ul
>
li
>
a[title]
{
/*
rules
*/

}

    Slide 144

    Slide 144 text

    TRANSCENDING
CSS
 ‘FOR
A
BEAUTIFUL
WEB’ WORKSHOP
SERIES
2007‐8

    Slide 145

    Slide 145 text

    TRANSCENDING
CSS
 ‘FOR
A
BEAUTIFUL
WEB’ WORKSHOP
SERIES
2007‐8

    Slide 146

    Slide 146 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE CREATING
INSPIRED
 DESIGN
WITH
CSS

    Slide 147

    Slide 147 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE CSS
BOX
MODEL

    Slide 148

    Slide 148 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE C S S 
 B O X 
 M O D E L ‐ All
elements
generate
a
box ‐ Block‐level
elements
start
on
a
new
line
and
can
contain
other
 block
level
and
inline
elements ‐ Inline
elements
appear
within
content,
with
no
line ‐ Boxes
are
laid
out
along
the
horizontal
axis
 ‐ Create
line
boxes

    Slide 149

    Slide 149 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE C S S 
 B O X 
 M O D E L Visual
model Box
model Lines Boxes Borders Padding Margins

    Slide 150

    Slide 150 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE C S S 
 B O X 
 M O D E L ‐ Every
box
has
a
content
area ‐ Boxes
can
be
left
in
the
normal
flow ‐ Boxes
can
be
floated ‐ Boxes
can
be
positioned

    Slide 151

    Slide 151 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE C S S 
 B O X 
 M O D E L “The
box
width
is
given
by
the
sum
of
the
left
and
right
 margins,
border,
and
padding,
and
the
content
width.
The
 height
is
given
by
the
sum
of
the
top
and
bottom
margins,
 border,
and
padding,
and
the
content
height.” W3.ORG/TR/REC‐CSS2/BOX‐HTML#BOX‐DIMENSIONS

    Slide 152

    Slide 152 text

    C S S 
 B O X 
 M O D E L Margin TM BM RM W3C
box
model Border LB TB BB RB Padding LP TP BP RP Content

    Slide 153

    Slide 153 text

    C S S 
 B O X 
 M O D E L Content
+
Padding
+
Border W3C
box
model

    Slide 154

    Slide 154 text

    C S S 
 B O X 
 M O D E L 100px W3C
box
model 5px 1px 5px 1px Total
box
width:
112px

    Slide 155

    Slide 155 text

    C S S 
 B O X 
 M O D E L #box
{
width
:
100px; padding
:
5px; border‐width
:
1px;

} Total
box
width:
100px 100px Microsoft
box
model

    Slide 156

    Slide 156 text

    J O N 
 H I C K S ’ 
 3 D 
 B O X 
 M O D E L padding
* margin
* background‐image background‐color border content *
transparent

    Slide 157

    Slide 157 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE FLOATS

    Slide 158

    Slide 158 text

    No content

    Slide 159

    Slide 159 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE

    Slide 160

    Slide 160 text

    F L O AT S

    Slide 161

    Slide 161 text

    #content
ul
li
{
 float
:
left;
 margin‐right
:
5px;
 width
:
205px;
} #content
ul
li:last‐child
{
 margin‐right
:
0;
} F L O AT S

    Slide 162

    Slide 162 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE
  • Slide 163

    Slide 163 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE

    Slide 164

    Slide 164 text

    #content
ul
li
{
 float
:
left;
 margin‐right
:
5px;
 width
:
410px;
 min‐height
:
24em;
 border‐bottom
:
1px
dotted
#fdfcef;
} #content
ul
li:last‐child
{
 margin‐right
:
0;
} F L O AT S

    Slide 165

    Slide 165 text

  • Slide 166

    Slide 166 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE

    Slide 167

    Slide 167 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE NEGATIVE
MARGINS

    Slide 168

    Slide 168 text

    S T Y L I N G 
 F O R M 
 E L E M E N T S

    Slide 169

    Slide 169 text

    F O R M 
 X H T M L

    Slide 170

    Slide 170 text

    F O R M 
 X H T M L 
 & 
 C S S
    form
{
 margin
:
0;
 padding
:
0;
 width
:
535px;
}

    Slide 171

    Slide 171 text

    Tell
us
about
yourself

    Your
name: Date
of
birth: F I E L D S E T 
 X H T M L

    Slide 172

    Slide 172 text

    D I V I S I O N S 
 & 
 F I E L D S E T S #form_info
{
 padding
:
50px
40px
40px
0;
 background
:
url(fieldset_join.png)
no‐repeat;
} #form_age
{
 padding
:
50px
0
40px
40px;
 background
:
url(form_join.png)
no‐repeat;
}

    Slide 173

    Slide 173 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE D I V I S I O N S 
 & 
 F I E L D S E T S 535px 50px 40px 40px [
content
] #form_age
{
 padding
:
50px
0
40px
40px;
 background
:
url(join_rt.png)
no‐repeat;
}

    Slide 174

    Slide 174 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE D I V I S I O N S 
 & 
 F I E L D S E T S #form_info
{
 padding
:
50px
0
40px
40px;
 background
:
url(join_rb.png)
no‐repeat;
}

    Slide 175

    Slide 175 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE D I V I S I O N S 
 & 
 F I E L D S E T S #form_age
{
 padding
:
50px
40px
40px
0;
 background
:
url(join_rt.png)
no‐repeat;
}

    Slide 176

    Slide 176 text

    D I V I S I O N S 
 & 
 F I E L D S E T S

    Slide 177

    Slide 177 text

    S T Y L I N G 
 H E A D I N G S 
 U S I N G 
 N E G AT I V E 
 M A R G I N S

    Slide 178

    Slide 178 text

    Tell
us
about
yourself

    Your
name: Date
of
birth: S T Y L I N G 
 H E A D I N G S 
 U S I N G 
 N E G AT I V E 
 M A R G I N S

    Slide 179

    Slide 179 text

    30px 50px 40px S T Y L I N G 
 H E A D I N G S 
 U S I N G 
 N E G AT I V E 
 M A R G I N S

    Slide 180

    Slide 180 text

    #form_info
{
 padding
:
50px
0
40px
0;
} S T Y L I N G 
 H E A D I N G S 
 U S I N G 
 N E G AT I V E 
 M A R G I N S #form_info
h3
{
 margin
:
‐70px
0
0
200px;
 padding
:
0;
 width
:
385px;
 height
:
90px;
 background
:
url(h3_form_info.png)
no‐repeat;
 text‐indent
:
‐9999px;
}

    Slide 181

    Slide 181 text

    30px 50px 40px S T Y L I N G 
 H E A D I N G S 
 U S I N G 
 N E G AT I V E 
 M A R G I N S 50px

    Slide 182

    Slide 182 text

    S T Y L I N G 
 H E A D I N G S 
 U S I N G 
 N E G AT I V E 
 M A R G I N S

    Slide 183

    Slide 183 text

    S T Y L I N G 
 F O R M 
 E L E M E N T S

    Slide 184

    Slide 184 text

    #form_transport
input
{
 background‐color
:
transparent;
 border‐width
:
0;
border‐bottom
:
1px
dotted
#fff;
 font‐weight
:
bold;
 color
:
#fff;
} #form_transport
textarea
{
 background‐color
:
transparent;
 border
:
1px
dotted
#fff;
 color
:
#fff;
} #form_transport
label
{
 position
:
absolute;
 top
:
‐9999px;
}
 S T Y L I N G 
 F O R M 
 E L E M E N T S

    Slide 185

    Slide 185 text

    #form_transport
input
{
 background‐color
:
transparent;
 border‐width
:
0;
border‐bottom
:
1px
dotted
#fff;
 font‐weight
:
bold;
 color
:
#fff;
} #form_transport
textarea
{
 background‐color
:
transparent;
 border
:
1px
dotted
#fff;
 color
:
#fff;
} #form_transport
label
{
 position
:
absolute;
 top
:
‐9999px;
}
 S T Y L I N G 
 F O R M 
 E L E M E N T S

    Slide 186

    Slide 186 text

    #form_transport
input
{
 background‐color
:
transparent;
 border‐width
:
0;
border‐bottom
:
1px
dotted
#fff;
 font‐weight
:
bold;
 color
:
#fff;
} #form_transport
textarea
{
 background‐color
:
transparent;
 border
:
1px
dotted
#fff;
 color
:
#fff;
} #form_transport
label
{
 position
:
absolute;
 top
:
‐9999px;
}
 S T Y L I N G 
 F O R M 
 E L E M E N T S

    Slide 187

    Slide 187 text

    S T Y L I N G 
 F O R M 
 E L E M E N T S

    Slide 188

    Slide 188 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE DEMONSTRATION

    Slide 189

    Slide 189 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE CSS
POSITIONING

    Slide 190

    Slide 190 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE C S S 3 
 P O S I T I O N I N G 
 T Y P E S Static Position
an
element
in
its
natural
position
in
the
normal
flow
 (default) Relative Offset
an
element
from
its
natural
position
in
the
normal
flow
using
 top,
bottom,
left
and
right
values Absolute Remove
an
element
from
the
normal
flow
and
position
it
in
relation
 to
either
its
closest
positioned
ancestor
or
the
root
element
using
 top,
bottom,
left
and
right
values
 Fixed Remove
an
element
from
the
normal
flow
and
position
it
in
relation
 to
the
view‐port
using
top,
bottom,
left
and
right
values;
it
does
not
 scroll


    Slide 191

    Slide 191 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE C S S 3 
 P O S I T I O N I N G 
 T Y P E S Static Position
an
element
in
its
natural
position
in
the
normal
flow
 (default) Relative Offset
an
element
from
its
natural
position
in
the
normal
flow
using
 top,
bottom,
left
and
right
values Absolute Remove
an
element
from
the
normal
flow
and
position
it
in
relation
 to
either
its
closest
positioned
ancestor
or
the
root
element
using
 top,
bottom,
left
and
right
values
 Fixed Remove
an
element
from
the
normal
flow
and
position
it
in
relation
 to
the
view‐port
using
top,
bottom,
left
and
right
values;
it
does
not
 scroll


    Slide 192

    Slide 192 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE C S S 3 
 P O S I T I O N I N G 
 T Y P E S Static Position
an
element
in
its
natural
position
in
the
normal
flow
 (default) Relative Offset
an
element
from
its
natural
position
in
the
normal
flow
using
 top,
bottom,
left
and
right
values Absolute Remove
an
element
from
the
normal
flow
and
position
it
in
relation
 to
either
its
closest
positioned
ancestor
or
the
root
element
using
 top,
bottom,
left
and
right
values
 Fixed Remove
an
element
from
the
normal
flow
and
position
it
in
relation
 to
the
view‐port
using
top,
bottom,
left
and
right
values;
it
does
not
 scroll


    Slide 193

    Slide 193 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE C S S 3 
 P O S I T I O N I N G 
 T Y P E S Static Position
an
element
in
its
natural
position
in
the
normal
flow
 (default) Relative Offset
an
element
from
its
natural
position
in
the
normal
flow
using
 top,
bottom,
left
and
right
values Absolute Remove
an
element
from
the
normal
flow
and
position
it
in
relation
 to
either
its
closest
positioned
ancestor
or
the
root
element
using
 top,
bottom,
left
and
right
values
 Fixed Remove
an
element
from
the
normal
flow
and
position
it
in
relation
 to
the
view‐port
using
top,
bottom,
left
and
right
values;
it
does
not
 scroll


    Slide 194

    Slide 194 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE RELATIVE
POSITIONING

    Slide 195

    Slide 195 text

    No content

    Slide 196

    Slide 196 text

    No content

    Slide 197

    Slide 197 text

    img.offset
{
 position
:
relative;
 top
:
50px;
 left
:
50px;
}
 R E L AT I V E 
 P O S I T I O N I N G

    Slide 198

    Slide 198 text

    R E L AT I V E 
 P O S I T I O N I N G

    
...


    Slide 199

    Slide 199 text

    img.fl
{
 float
:
left;
}
 R E L AT I V E 
 P O S I T I O N I N G

    Slide 200

    Slide 200 text

    img.fl
{
 float
:
left;
 position
:
relative;
 left
:
‐15px;
} R E L AT I V E 
 P O S I T I O N I N G

    Slide 201

    Slide 201 text

    . img.fl
{
 float
:
left;
 position
:
relative;
 left
:
‐15px;
 margin‐right
:
‐5px;}
 R E L AT I V E 
 P O S I T I O N I N G

    Slide 202

    Slide 202 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE ABSOLUTE
POSITIONING

    Slide 203

    Slide 203 text

    No content

    Slide 204

    Slide 204 text

    img.offset
{
 position
:
absolute;
 top
:
0;
 left
:
0;
}
 A B S O L U T E 
 P O S I T I O N I N G

    Slide 205

    Slide 205 text

    img.offset
{
 position
:
absolute;
 top
:
0;
 left
:
0;
} div#contact
{
 position
:
relative; } A B S O L U T E 
 P O S I T I O N I N G

    Slide 206

    Slide 206 text

    No content

    Slide 207

    Slide 207 text

  • Slide 208

    Slide 208 text

    Albums

    A B S O L U T E 
 P O S I T I O N I N G

    Slide 209

    Slide 209 text

    A B S O L U T E 
 P O S I T I O N I N G

    Slide 210

    Slide 210 text

    No content

    Slide 211

    Slide 211 text

      #content
ul
{
 position
:
relative;
}

    Slide 212

    Slide 212 text

    #content
h2:first‐child
+
ul
li
{
 width
:
340px;
 margin‐bottom
:
30px;
}
  • Slide 213

    Slide 213 text

    #content
h2:first‐child
+
ul
h3,
 #content
h2:first‐child
+
ul
p
{
 display
:
inline;
margin
:
0;
padding
:
0;
} #content
h2:first‐child
+
ul
img
{
 position
:
absolute;
}

    Slide 214

    Slide 214 text

    #a01
img
{
left
:
410px;
} #a02
img
{
left
:
550px;
} #a03
img
{
left
:
690px;
} #a04
img
{
top
:
140px;
left
:
410px;
} #a05
img
{
top
:
140px;
left
:
550px;
} #a06
img
{
top
:
140px;
left
:
690px;
}

    Slide 215

    Slide 215 text

    Slide 216

    Slide 216 text

    No content

    Slide 217

    Slide 217 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE DEMONSTRATION

    Slide 218

    Slide 218 text

    No content

    Slide 219

    Slide 219 text

    Slide 220

    Slide 220 text

    A B S O L U T E 
 P O S I T I O N I N G

    Slide 221

    Slide 221 text

  • Colly
Wobbles

    Colly
Wobbles...

    c/o
Stuff
and
Nonsense
Records Gwaenysgor,
 Flintshire,
 LL18
6EP +44
(0)1745
851848 Email
Colly
  • A B S O L U T E 
 P O S I T I O N I N G

    Slide 222

    Slide 222 text

      #content
ul
{
 position
:
relative;
}

    Slide 223

    Slide 223 text

  • li.vcard
{
 width
:
255px;
}
  • Slide 224

    Slide 224 text

      .photo,
.vcard
div
{
 position
:
absolute;
} .vcard
div
{
 width
:
190px;
}

    Slide 225

    Slide 225 text

  • .photo,
.vcard
div
{
 position
:
absolute;
} .vcard
div
{
 width
:
190px;
} #colly
.photo
{
 top
:
100px;
 left
:
275px;
} #colly
div
{
 top
:
645px;
 left
:
275px;
}
  • Slide 226

    Slide 226 text

    #dan
.photo
{
 top
:
100px;
 left
:
475px;
} #dan
div
{
 top
:
485px;
 left
:
490px;
}
  • Slide 227

    Slide 227 text

    #jina
.photo
{
 top
:0;
 left
:
675px;
} #jina
div
{
 top
:
205px;
 left
:
690px;
}
  • Slide 228

    Slide 228 text

    #malarkey
.photo
{
 top
:460px;
 left
:
675px;
} #malarkey
div
{
 top
:
645px;
 left
:
675px;
}
  • Slide 229

    Slide 229 text

  • Slide 230

    Slide 230 text

  • Slide 231

    Slide 231 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE

    Slide 232

    Slide 232 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE

    Slide 233

    Slide 233 text

    AT T R I B U T E 
 S E L E C T O R S
  • Colly
Wobbles

    Colly
Wobbles...

    c/o
Stuff
and
Nonsense
Records Gwaenysgor,
 Flintshire,
 LL18
6EP +44
(0)1745
851848 Email
Colly
  • Slide 234

    Slide 234 text

    AT T R I B U T E 
 S E L E C T O R S +44
(0)1745
851848 Email
Colly
 a[class="tel"]
{
 padding
:
0
0
2px
25px;
 background
:

url(vcard_tel.png)
no‐repeat
0
50%;
} 
 a[class="email"]
{
 padding‐left
:
25px;
 background
:

url(vcard_email.png)
no‐repeat
0
50%;
}

    Slide 235

    Slide 235 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE DEMONSTRATION

    Slide 236

    Slide 236 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE FIXED
POSITIONING

    Slide 237

    Slide 237 text

    No content

    Slide 238

    Slide 238 text

      #content
ul
{
 position
:
relative;
} .photo
{
 position
:
fixed;
}

    Slide 239

    Slide 239 text

    No content

    Slide 240

    Slide 240 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE DEMONSTRATION

    Slide 241

    Slide 241 text

    #d01
{
 position
:
relative;
} #d01
img
{
 position
:
absolute;
} Z ‐ I N D E X

    Slide 242

    Slide 242 text

    #d01
{
 position
:
relative;
} #d01
img
{
 position
:
absolute;
} #a01
{
z‐index
:
1;
} #a02
{
z‐index
:
2;
} #a03
{
z‐index
:
3;
} Z ‐ I N D E X

    Slide 243

    Slide 243 text

    #d01,
#d02
{
 position
:
relative;
} #d01
img,
#d02
img
{
 position
:
absolute;
} #a01
{
z‐index
:
1;
} #a02
{
z‐index
:
2;
} #a03
{
z‐index
:
3;
} #a04
{
z‐index
:
1;
} #a05
{
z‐index
:
2;
} #a06
{
z‐index
:
3;
} Z ‐ I N D E X

    Slide 244

    Slide 244 text

    #d01,
#d02
{
 position
:
relative;
} #d01
{
z‐index
:
2;
} #d02
{
z‐index
:
1;
} #d01
img,
#d02
img
{
 position
:
absolute;
} Z ‐ I N D E X

    Slide 245

    Slide 245 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE COMBINATION
TECHNIQUES

    Slide 246

    Slide 246 text

    No content

    Slide 247

    Slide 247 text

    Slide 248

    Slide 248 text

    See
larger
image

    Sushi
Ska

    Sushi
Ska
is
The
Nonsense
Robots
at
their
very
best,
 exotic,
raw
and
full
of
flavour.

    • Availability:
In
stock
    • Price:
£
9.99

    This
item
is
delivered
free
in
the
UK.

    ...
    C O M B I N AT I O N 
 T E C H N I Q U E S

    Slide 249

    Slide 249 text

    ... Qty:
    Proceed
to
checkout

    Your
shopping
cart
is
empty

    C O M B I N AT I O N 
 T E C H N I Q U E S

    Slide 250

    Slide 250 text

    #content_product
{
 position
:
relative;
}
    C O M B I N AT I O N 
 T E C H N I Q U E S

    Slide 252

    Slide 252 text

    C O M B I N AT I O N 
 T E C H N I Q U E S

    Slide 253

    Slide 253 text

    C O M B I N AT I O N 
 T E C H N I Q U E S
    #content_product
div
{
 position
:
absolute;
 top
:
10px;
 right
:
‐220px;
}

    Slide 254

    Slide 254 text

    C O M B I N AT I O N 
 T E C H N I Q U E S

    Slide 255

    Slide 255 text

    C O M B I N AT I O N 
 T E C H N I Q U E S

    Slide 256

    Slide 256 text

    No content

    Slide 257

    Slide 257 text

    No content

    Slide 258

    Slide 258 text

  • Slide 259

    Slide 259 text

    • Sushi
Ska


      Sushi
Ska
 is
The
Nonsense
Robots
at
their
very
best,
exotic,
raw
and
 full
of
flavour.

      Price:
£9.99

      Qty:
    • C O M B I N AT I O N 
 T E C H N I Q U E S

    Slide 260

    Slide 260 text

      C O M B I N AT I O N ul
{
 position
:
relative;
 padding‐top:
360px;
}

    Slide 261

    Slide 261 text

      C O M B I N AT I O N ul
{
 position
:
relative;
 padding‐top:
360px;
}
 li
{
 float
:
left;
 width
:
280px;
 height
:
120px;
 margin‐right
:
10px; margin‐bottom
:
20px;
}

    Slide 262

    Slide 262 text

    C O M B I N AT I O N h3
{
 position
:
absolute; top
:
0;
 left
:
0; width
:
132px;
 margin
:
0;
 padding‐top
:
135px; }

    Slide 263

    Slide 263 text

    C O M B I N AT I O N #a02
h3
{
 left
:
160px;
} #a03
h3
{
 left
:
320px;
} #a04
h3
{
 top
:
170px;
} #a05
h3
{
 top
:
170px;
 left
:
160px;
} #a06
h3
{
 top
:
170px;
 left
:
320px;
}

    Slide 264

    Slide 264 text

    C O M B I N AT I O N h3
{
 position
:
absolute;
} h3
img
{
 position
:
absolute;
 top
:
0;
 left
:
0;
}

    Slide 265

    Slide 265 text

    Slide 266

    Slide 266 text

    Slide 267

    Slide 267 text

    No content

    Slide 268

    Slide 268 text

    TRANSCENDING
CSS
 ‘FOR
A
BEAUTIFUL
WEB’ WORKSHOP
SERIES
2007‐8

    Slide 269

    Slide 269 text

    TRANSCENDING
CSS
 ‘FOR
A
BEAUTIFUL
WEB’ WORKSHOP
SERIES
2007‐8

    Slide 270

    Slide 270 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE SIMPLE
STEPS
TO
BETTER
 WEB
TYPOGRAPHY

    Slide 271

    Slide 271 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE RESET
BROWSER
DEFAULTS

    Slide 272

    Slide 272 text

    A N D R E W 
 K R E S PA N I S 
 G L O B A L 
 W H I T E S PA C E 
 R E S E T *
{ margin
:
0;
 padding
:
0;
 } LEFTJUSTIFIED.NET/JOURNAL/2004/10/19/GLOBAL‐WS‐RESET/

    Slide 273

    Slide 273 text

    YA H O O 
 R E S E T 
 B R O W S E R 
 D E FA U LT S Text body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset, input,textarea,p,blockquote,th,td
{
margin
:
0;
padding
:
0;
}
 table
{
border‐collapse
:
collapse;
border‐spacing
:
0;
}
 fieldset,
img
{
border
:
0;
}
 address,caption,cite,code,dfn,em,strong,th,var
{
font‐style
:
 normal;
font‐weight
:
normal;
}
 ol,
ul
{
list‐style
:
none;
}
 caption,th
{
text‐align
:
left;
}
 h1,h2,h3,h4,h5,h6
{
font‐size
:
100%;
font‐weight
:
normal;
}
 q:before,q:after
{
content
:
'';
}
 abbr,acronym
{
border
:
0;
}
 DEVELOPER.YAHOO.COM/YUI/RESET

    Slide 274

    Slide 274 text

    E R I C 
 M E Y E R ’ S 
 R E S E T 
 B R O W S E R 
 D E FA U LT S 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,
dl,
dt,
dd,
ol,
ul,
 li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
 tfoot,
thead,
tr,
th,
td
{
 margin
:
0;
padding
:
0;
border
:
0;
outline
:
0;
font‐weight
:
 inherit;
font‐style
:
inherit;
font‐size
:
100%;
font‐family
:
 inherit;
vertical‐align:
baseline;
background
:
transparent;
} :focus
{
outline
:
0;
}
 ol,
ul
{
list‐style
:
none;
} table
{
border‐collapse
:
collapse;
border‐spacing
:
0;
} caption,
th,
td
{
text‐align
:
left;
font‐weight
:
normal;
} blockquote,
q
{
quotes
:
""
"";
} MEYERWEB.COM/ERIC/THOUGHTS/2007/05/01/RESET‐RELOADED/

    Slide 275

    Slide 275 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE “COMPOSE
TO
A
 VERTICAL
RHYTHM” RICHARD
RUTTER
24WAYS.ORG/2006
(DAY
12)

    Slide 276

    Slide 276 text

    No content

    Slide 277

    Slide 277 text

    No content

    Slide 278

    Slide 278 text

    No content

    Slide 279

    Slide 279 text

    No content

    Slide 280

    Slide 280 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE body
{
font‐size
:
12px;
} p
{
font‐size
:
1em;
/*
12px
*/ line‐height
:
1.5;
/*
18px
*/ margin
:
0
0
1.5em
0;
} p:last‐child
{
margin‐bottom
:
0;
} C A L C U L AT I N G 
 L I N E 
 H E I G H T Calculate
the
line‐height
in
ems
by
dividing
the
desired
 line‐height
(18px)
by
the
base
font‐size
(12px)
to
give
a
 value
of
1.5

    Slide 281

    Slide 281 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE #content_sub
p
{
 font‐size
:
0.8333em;




/*
10px
÷
12px
*/ line‐height
:
1.8em;




/*
18px
÷
10px
*/ } S M A L L E R 
 F O N T‐ S I Z E 
 L I N E 
 H E I G H T Sidenote:
Calculate
the
font‐size
in
ems
by
dividing
the
desired
font‐ size
(10px)
by
the
base
font‐size
(12px)
to
give
a
value
of

0.8333em.
 Maintain
vertical
rhythm
by
dividing
vertical
rhythm
unit
(18px)
 by
the
new
font‐size
(10px
to
give
a
value
of
1.8em.

    Slide 282

    Slide 282 text

    No content

    Slide 283

    Slide 283 text

    No content

    Slide 284

    Slide 284 text

    No content

    Slide 285

    Slide 285 text

    No content

    Slide 286

    Slide 286 text

    No content

    Slide 287

    Slide 287 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE INCREMENTAL
LEADING

    Slide 288

    Slide 288 text

    No content

    Slide 289

    Slide 289 text

    No content

    Slide 290

    Slide 290 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE p
{
font‐size
:
1em;




/*
12px
*/ line‐height
:
1.8em;




/*
18px
*/ } I N C R E M E N TA L 
 L E A D I N G Four
lines
of
text
in
the
main
content: 18px
x
4
=
72px

    Slide 291

    Slide 291 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE I N C R E M E N TA L 
 L E A D I N G To
calculate
for
5
lines
of
text
in
the
sidebar: 72px
÷
5
=
14.4px #content_sub
p
{ font‐size
:
0.8333em; line‐height
:
1.44em;


/*
14.4px
÷
10px
*/ }

    Slide 292

    Slide 292 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE I N C R E M E N TA L 
 L E A D I N G #content_sub
p
{ font‐size
:
0.8333em; line‐height
:
1.44em; margin‐top
:
0.28em;
 }

    Slide 293

    Slide 293 text

    No content

    Slide 294

    Slide 294 text

    No content

    Slide 295

    Slide 295 text

    No content

    Slide 296

    Slide 296 text

    No content

    Slide 297

    Slide 297 text

    No content

    Slide 298

    Slide 298 text

    CODE.GOOGLE.COM/P/BLUEPRINTCSS/

    Slide 299

    Slide 299 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE CSS3
(THIRD
TIME
LUCKY)

    Slide 300

    Slide 300 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE C S S 3 
 M O D U L E S Selectors
module Refined
selectors
to
target
an
element
based
on
an
 attribute
or
position
in
the
document
flow
plus
new
 pseudo‐classes
and
elements. Backgrounds
and
borders module Style
any
box’s
borders
and
background
including
 attach
multiple
background‐images
to
one
element. Multi‐column
layout
 module Making
it
simpler
to
create
column
layouts
without
 additional
markup
by
using
column
counts,
gaps
and
 rules. Advanced
Layout
module Aims
to
fully
separate
visual
layout
order
from
a
 document’s
content. Media
Queries
module Extending
the
usefulness
of
media
types
in
 combination
with
window
widths,
heights
and
aspect
 ratio.

    Slide 301

    Slide 301 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE C S S 3 
 M O D U L E S Selectors
module Refined
selectors
to
target
an
element
based
on
an
 attribute
or
position
in
the
document
flow
plus
new
 pseudo‐classes
and
elements. Backgrounds
and
borders module Style
any
box’s
borders
and
background
including
 attach
multiple
background‐images
to
one
element. Multi‐column
layout
 module Making
it
simpler
to
create
column
layouts
without
 additional
markup
by
using
column
counts,
gaps
and
 rules. Advanced
Layout
module Aims
to
fully
separate
visual
layout
order
from
a
 document’s
content. Media
Queries
module Extending
the
usefulness
of
media
types
in
 combination
with
window
widths,
heights
and
aspect
 ratio.

    Slide 302

    Slide 302 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE C S S 3 
 M O D U L E S Selectors
module Refined
selectors
to
target
an
element
based
on
an
 attribute
or
position
in
the
document
flow
plus
new
 pseudo‐classes
and
elements. Backgrounds
and
borders module Style
any
box’s
borders
and
background
including
 attach
multiple
background‐images
to
one
element. Multi‐column
layout
 module Making
it
simpler
to
create
column
layouts
without
 additional
markup
by
using
column
counts,
gaps
and
 rules. Advanced
Layout
module Aims
to
fully
separate
visual
layout
order
from
a
 document’s
content. Media
Queries
module Extending
the
usefulness
of
media
types
in
 combination
with
window
widths,
heights
and
aspect
 ratio.

    Slide 303

    Slide 303 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE C S S 3 
 M O D U L E S Selectors
module Refined
selectors
to
target
an
element
based
on
an
 attribute
or
position
in
the
document
flow
plus
new
 pseudo‐classes
and
elements. Backgrounds
and
borders module Style
any
box’s
borders
and
background
including
 attach
multiple
background‐images
to
one
element. Multi‐column
layout
 module Making
it
simpler
to
create
column
layouts
without
 additional
markup
by
using
column
counts,
gaps
and
 rules. Advanced
Layout
module Aims
to
fully
separate
visual
layout
order
from
a
 document’s
content. Media
Queries
module Extending
the
usefulness
of
media
types
in
 combination
with
window
widths,
heights
and
aspect
 ratio.

    Slide 304

    Slide 304 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE C S S 3 
 M O D U L E S Selectors
module Refined
selectors
to
target
an
element
based
on
an
 attribute
or
position
in
the
document
flow
plus
new
 pseudo‐classes
and
elements. Backgrounds
and
borders module Style
any
box’s
borders
and
background
including
 attach
multiple
background‐images
to
one
element. Multi‐column
layout
 module Making
it
simpler
to
create
column
layouts
without
 additional
markup
by
using
column
counts,
gaps
and
 rules. Advanced
Layout
module Aims
to
fully
separate
visual
layout
order
from
a
 document’s
content. Media
Queries
module Extending
the
usefulness
of
media
types
in
 combination
with
window
widths,
heights
and
aspect
 ratio.

    Slide 305

    Slide 305 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE CSS3
SELECTORS W3.ORG/TR/CSS‐3‐SELECTORS/

    Slide 306

    Slide 306 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE C S S 3 
 S E L E C T O R S 
 M O D U L E E:nth‐child(n) an
E
element,
the
n‐th
child
of
its
parent E:nth‐last‐child(n) an
E
element,
the
n‐th
child
of
its
parent,
 counting
from
the
last
one E:nth‐of‐type(n) an
E
element,
the
n‐th
sibling
of
its
type E:only‐of‐type an
E
element,
only
sibling
of
its
type E:not(s) an
E
element
that
does
not
match
simple
selector
s E
~
F an
F
element
preceded
by
an
E
element

    Slide 307

    Slide 307 text

    No content

    Slide 308

    Slide 308 text

    C S S 3 
 S E L E C T O R S : N T H ‐ C H I L D 2 Train
To
Skaville
 3 Ska
Train
 Listen

    Slide 309

    Slide 309 text

    C S S 3 
 S E L E C T O R S : N T H ‐ C H I L D 2 Train
To
Skaville
 3 Ska
Train
 Listen

    Slide 310

    Slide 310 text

    C S S 3 
 S E L E C T O R S : N T H ‐ C H I L D Every
odd
row
of
an
HTML
table tr:nth‐child(2n+1)
{
 /*
rules
*/

} tr:nth‐child(odd)
{
 /*
rules
*/

} Every
even
row
of
an
HTML
table tr:nth‐child(2n)
{
 /*
rules
*/

} tr:nth‐child(even)
{
 /*
rules
*/

}

    Slide 311

    Slide 311 text

    C S S 3 
 S E L E C T O R S 
 ‐ 
 : N T H ‐ C H I L D The
first
six
rows
of
an
HTML
table tr:nth‐child(‐n+6)
{
/*
rules
*/

} The
last
two
rows
of
an
HTML
table tr:nth‐last‐child(‐n+2)
{
/*
rules
*/

} The
9th,
19th,
29th,
etc,

row
of
an
HTML
table tr::nth‐child(10n‐1)
{
/*
rules
*/

} tr:nth‐child(10n+9)
{
/*
rules
*/

}

    Slide 312

    Slide 312 text

    ...

    ...

    ...

    : N T H ‐ C H I L D

    Slide 313

    Slide 313 text

    Alternate
floated
images img:nth‐of‐type(2n+1)
{
 float:
left;
} img:nth‐of‐type(2n)
{
 float:
right;
} : N T H ‐ C H I L D

    Slide 314

    Slide 314 text

  • ...
  • ...
  • ...
  • : F I R S T‐ O F ‐ T Y P E

    Slide 315

    Slide 315 text

    ul
li:first‐of‐type
{ border
:
1px
solid
#666;
 text‐transform
:
uppercase;
} : F I R S T‐ O F ‐ T Y P E W3.ORG/TR/CSS‐3‐SELECTORS/

    Slide 316

    Slide 316 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE CSS3
BACKGROUNDS
&
 BORDERS
MODULE W3.ORG/TR/CSS‐3‐BACKGROUND/

    Slide 317

    Slide 317 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE C S S 3 
 B A C K G R O U N D S 
 A N D 
 B O R D E R S ‐ Background‐clip ‐ Background‐origin ‐ Background‐size ‐ Background‐break ‐ Border‐radius ‐ Border‐break ‐ Border‐image ‐ Box‐shadow

    Slide 318

    Slide 318 text

    Just
when
you
thought
you
knew
everything
there
is
to
know
 about
ska,
Tripwire
comes
along
and
trips
you
up.

    C S S 3 
 B A C K G R O U N D S 
 A N D 
 B O R D E R S

    Slide 319

    Slide 319 text

    Just
when
you
thought
you
knew
everything
there
is
to
know
 about
ska,
Tripwire
comes
along
and
trips
you
up.

    C S S 3 
 B A C K G R O U N D S 
 A N D 
 B O R D E R S

    Slide 320

    Slide 320 text

    p
{
background‐image
:
 url(top_left.png), url(top_right.png), url(bottom_right.png), url(bottom_left.png), url(top_center.png), url(middle_right.png), url(bottom_center.png), url(middle_left.png);
} C S S 3 
 B A C K G R O U N D S 
 A N D 
 B O R D E R S

    Slide 321

    Slide 321 text

    p
{
background‐repeat
:
 no‐repeat,
 no‐repeat,
 no‐repeat,
 no‐repeat,
 repeat‐x,
 repeat‐y,
 repeat‐x,
 repeat‐y;
} C S S 3 
 B A C K G R O U N D S 
 A N D 
 B O R D E R S

    Slide 322

    Slide 322 text

    p
{
background‐position
:
 top
left, top
right, bottom
right, bottom
left, top
left, top
right, bottom
right, bottom
left;
} C S S 3 
 B A C K G R O U N D S 
 A N D 
 B O R D E R S

    Slide 323

    Slide 323 text

    No content

    Slide 324

    Slide 324 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE C S S 3 
 B A C K G R O U N D S 
 A N D 
 B O R D E R S “13.
Layering
multiple
background
images ‐The
properties
'background‐image',
'background‐origin',
 'background‐clip',
'background‐repeat',
'background‐size',
and
 'background‐position'
may
have
multiple
comma‐separated
values.
 Excepting
the
case
that
'background‐image'
is
'none',
if
the
values
 are
specified
as
follows: ‐backgound‐image:
w 1,…wM ‐backgound‐repeat:
x 1,…xR ‐backgound‐size:
y 1,…yS ‐backgound‐position:
s 1,…sP ‐the
number
of
layers
is
N
=
max(M,
R,
S,
P).” W3.ORG/TR/CSS‐3‐BACKGROUND/

    Slide 325

    Slide 325 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE CSS3
MULTI‐COLUMN
MODULE W3.ORG/TR/CSS‐3‐MULTICOL/

    Slide 326

    Slide 326 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE column‐count column‐width column‐gap column‐rule ‐moz‐column‐count ‐moz‐column‐width ‐moz‐column‐gap ‐moz‐column‐rule C S S 
 M U LT I ‐ C O L U M N 
 M O D U L E

    Slide 327

    Slide 327 text

    No content

    Slide 328

    Slide 328 text

    Slide 329

    Slide 329 text

    Stomping
Robots

    What
is
ska?

    The
2
Tone
genre,
which
began
in
the
late
1970s
in
England,
 was
a
fusion
of
Jamaican
ska
rhythms
and
melodies
with
punk
 rock's
uncompromising
lyrics.

    C S S 
 M U LT I ‐ C O L U M N 
 M O D U L E

    Slide 330

    Slide 330 text

    Stomping
Robots

    What
is
ska?

    The
2
Tone
genre,
which
began
in
the
late
1970s
in
England,
 was
a
fusion
of
Jamaican
ska
rhythms
and
melodies
with
punk
 rock's
uncompromising
lyrics.

    H I G H L I G H T I N G 
 M I C R O F O R M AT S

    Slide 331

    Slide 331 text

    Slide 332

    Slide 332 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE .entry‐content
{
 column‐count
:
3;
 column‐gap
:
5px; column‐rule
:
thin
solid
black; /*
For
Firefox
*/ ‐moz‐column‐count
:
3;
 ‐moz‐column‐gap
:
5px;
} C S S 
 M U LT I ‐ C O L U M N 
 M O D U L E

    Slide 333

    Slide 333 text

    No content

    Slide 334

    Slide 334 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE C S S 
 M U LT I ‐ C O L U M N 
 M O D U L E .entry‐content
{
 column‐width
:
200px;
 column‐gap
:
5px; column‐rule
:
thin
solid
black; /*
For
Firefox
*/ ‐moz‐column‐width
:
3;
 ‐moz‐column‐gap
:
5px;
}

    Slide 335

    Slide 335 text

    No content

    Slide 336

    Slide 336 text

    C S S 
 M U LT I ‐ C O L U M N 
 M O D U L E .replies
ol
{
 column‐count
:
3;
 /*
For
Firefox
*/ ‐moz‐column‐count
:
3;
}

    Slide 337

    Slide 337 text

    No content

    Slide 338

    Slide 338 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE CSS3
ADVANCED
LAYOUT W3.ORG/TR/CSS‐3‐LAYOUT/ CESARACEBAL.COM/RESEARCH/THESIS/ALMCSS/

    Slide 339

    Slide 339 text

    No content

    Slide 340

    Slide 340 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE C S S 3 
 A D VA N C E D 
 L AY O U T 
 M O D U L E Slot
letter identifies
the
slot
within
the
grid
for
any
content
that
 will
be
positioned
within
it @
(at
symbol) A
default
slot
into
which
content
that
has
not
been
 situated
can
flow .
(period) A
white‐space
slot
that
can
have
no
content
inserted
 into
it

    Slide 341

    Slide 341 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE C S S 3 
 A D VA N C E D 
 L AY O U T 
 M O D U L E body
{
display
:
 "a
b
c
d" "e
f
g
h" "i
j
k
l";
}

    Slide 342

    Slide 342 text

    I J K L C D B A G H F E

    Slide 343

    Slide 343 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE C S S 3 
 A D VA N C E D 
 L AY O U T 
 M O D U L E div#s01
{
position
:
ab;
} div#s02
{
position
:
c;
} div#s03
{
position
:
d;
} div#s04
{
position
:
ef;
} div#s05
{
position
:
gh;
} div#s06
{
position
:
i;
} div#s07
{
position
:
j;
} div#s08
{
position
:
k;
} div#s09
{
position
:
l;
}

    Slide 344

    Slide 344 text

    EF I AB C D GH J K L

    Slide 345

    Slide 345 text

    No content

    Slide 346

    Slide 346 text

    No content

    Slide 347

    Slide 347 text

    No content

    Slide 348

    Slide 348 text

    No content

    Slide 349

    Slide 349 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE C S S 3 
 A D VA N C E D 
 L AY O U T 
 M O D U L E Slot
letter identifies
the
slot
within
the
grid
for
any
content
that
 will
be
positioned
within
it @
(at
symbol) A
default
slot
into
which
content
that
has
not
been
 situated
can
flow .
(period) A
white‐space
slot
that
can
have
no
content
inserted
 into
it

    Slide 350

    Slide 350 text

    @ @ @ @ @ @

    Slide 351

    Slide 351 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE TRANSCENDING
CSS The
Fine
Art
Of
Web
Design by
Andy
Clarke Published
by
New
Riders
2006

    Slide 352

    Slide 352 text

    TRANSCENDING
CSS
FOR
A
BEAUTIFUL
WEB ANDY
CLARKE Q&A

    Slide 353

    Slide 353 text

    TRANSCENDING
CSS
 ‘FOR
A
BEAUTIFUL
WEB’ WORKSHOP
SERIES
2007‐8