Slide 1

Slide 1 text

How New CSS Is Changing Everything About Graphic Design on the Web W3C Publishing Summit @jenSimmons

Slide 2

Slide 2 text

@jensimmons

Slide 3

Slide 3 text

Layout & The Web

Slide 4

Slide 4 text

Stephen Waller at Enhance Conf expressing how BORED he is with web design today.

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

drawing by Dave Ellis novolume.co.uk

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

The web wasn’t always like this

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

No content

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

No content

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

No content

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

What Happened?

Slide 35

Slide 35 text

No content

Slide 36

Slide 36 text

No content

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

No content

Slide 39

Slide 39 text

No content

Slide 40

Slide 40 text

CSS Floats

Slide 41

Slide 41 text

No content

Slide 42

Slide 42 text

The Official Timeline of Web Page Layout The No-Layout Layout Table-based Layouts Hand-coded Float Layouts Framework Layouts Amazing Future!

Slide 43

Slide 43 text

CSS Grid Flexbox Alignment Writing Modes Multicolumn Viewport Units Transforms Object Fit Clip-path Masking Shape-outside Initial-letter Flow Floats Block Inline Inline-block Display:table Margin Negative margins Padding everything else in CSS

Slide 44

Slide 44 text

This new CSS changes everything in web layout.

Slide 45

Slide 45 text

No content

Slide 46

Slide 46 text

No content

Slide 47

Slide 47 text

No content

Slide 48

Slide 48 text

Hot metal composition: Pasteup :: Floats : CSS Grid

Slide 49

Slide 49 text

labs.jensimmons.com

Slide 50

Slide 50 text

1.

Slide 51

Slide 51 text

No content

Slide 52

Slide 52 text

No content

Slide 53

Slide 53 text

2.

Slide 54

Slide 54 text

No content

Slide 55

Slide 55 text

No content

Slide 56

Slide 56 text

No content

Slide 57

Slide 57 text

No content

Slide 58

Slide 58 text

No content

Slide 59

Slide 59 text

photo by Brad Frost, 2012, CC BY 2.0

Slide 60

Slide 60 text

No content

Slide 61

Slide 61 text

3.

Slide 62

Slide 62 text

No content

Slide 63

Slide 63 text

No content

Slide 64

Slide 64 text

No content

Slide 65

Slide 65 text

No content

Slide 66

Slide 66 text

No content

Slide 67

Slide 67 text

No content

Slide 68

Slide 68 text

No content

Slide 69

Slide 69 text

4.

Slide 70

Slide 70 text

No content

Slide 71

Slide 71 text

No content

Slide 72

Slide 72 text

No content

Slide 73

Slide 73 text

No content

Slide 74

Slide 74 text

No content

Slide 75

Slide 75 text

5.

Slide 76

Slide 76 text

labs.jensimmons.com/2017/01-008.html

Slide 77

Slide 77 text

labs.jensimmons.com/2017/01-008.html

Slide 78

Slide 78 text

labs.jensimmons.com/2017/01-008.html

Slide 79

Slide 79 text

Tools

Slide 80

Slide 80 text

CSS Shapes

Slide 81

Slide 81 text

No content

Slide 82

Slide 82 text

img { float: left; shape-outside: circle(); }

Slide 83

Slide 83 text

img { width: 200px; margin: 0 1.5em 0.5em 0; float: left; }

Slide 84

Slide 84 text

img { width: 200px; margin: 0 1.5em 0.5em 0; float: left; shape-outside: circle(); } There is a prefix: -webkit-shape-outside: circle(); *

Slide 85

Slide 85 text

img { max-width: 600px; float: left; margin-left: -26%; shape-outside:polygon( nonzero, -69.6% 101.25%, -84.35% 24.5%, 1.65% 4%, 23.3% 14.25%, 40.4% 13.5%, 43% 13.25%, 57.1% 16.5%, 62.7% 27%, 74.5% 32.25%, 78.15% 42.5%, 80.1% 49.25%, 77.15% 58.75%, 92.25% 68.25%, 92.9% 82.25%, 75.5% 92.5%, 51.55% 90.75%, -5.6% 101.25% ); }

Slide 86

Slide 86 text

No content

Slide 87

Slide 87 text

Initial Letter

Slide 88

Slide 88 text

No content

Slide 89

Slide 89 text

No content

Slide 90

Slide 90 text

p::first-letter { color: rgba(255,190,150,0.9); font-weight: bold; margin-right: 0.5em; initial-letter: 4; }

Slide 91

Slide 91 text

Viewport Units

Slide 92

Slide 92 text

labs.jensimmons.com/2017/01-008.html

Slide 93

Slide 93 text

No content

Slide 94

Slide 94 text

Viewport Units 50vmin 100vh

Slide 95

Slide 95 text

Viewport Units 50vh 25vh 50vw 25vh 50vw !at dang “fold”

Slide 96

Slide 96 text

Fixed Size

Slide 97

Slide 97 text

Responsive Web Design

Slide 98

Slide 98 text

The New CSS Layout

Slide 99

Slide 99 text

Object Fit

Slide 100

Slide 100 text

No content

Slide 101

Slide 101 text

No content

Slide 102

Slide 102 text

No content

Slide 103

Slide 103 text

No content

Slide 104

Slide 104 text

img { width: 50%; height: 400px; object-fit: cover; }

Slide 105

Slide 105 text

No content

Slide 106

Slide 106 text

No content

Slide 107

Slide 107 text

Writing Mode

Slide 108

Slide 108 text

No content

Slide 109

Slide 109 text

inline direction When I’m writing or reading this is the way the characters flow

Slide 110

Slide 110 text

block flow direction

Slide 111

Slide 111 text

Acharacter orientation

Slide 112

Slide 112 text

block direction inline direction Acharacter orientation

Slide 113

Slide 113 text

SYSTEMS LIKE LATIN block direction inline direction Acharacter orientation

Slide 114

Slide 114 text

No content

Slide 115

Slide 115 text

HAN-BASED SYSTEMS block direction inline direction *Chinese, Japanese, Korean & more

Slide 116

Slide 116 text

No content

Slide 117

Slide 117 text

HAN-BASED SYSTEMS block direction inline direction block direction inline direction *Chinese, Japanese, Korean & more

Slide 118

Slide 118 text

THREE OPTIONS FOR WRITING-MODE writing-mode: vertical-lr; writing-mode: vertical-rl; toggle w/ `dir` attribute in HTML + unicode writing-mode: horizontal-tb;

Slide 119

Slide 119 text

TWO MORE (FUTURE) OPTIONS FOR WRITING-MODE block direction inline direction writing-mode: sideways-lr; block direction inline direction writing-mode: sideways-rl; creates a horizontal typographic mode only A A

Slide 120

Slide 120 text

chenhuijing.com/zh-type

Slide 121

Slide 121 text

No content

Slide 122

Slide 122 text

h1:nth-child(2) { writing-mode: vertical-rl; }

Slide 123

Slide 123 text

CSS Grid

Slide 124

Slide 124 text

Grid

Slide 125

Slide 125 text

.container { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; grid-template-rows: 1fr 1fr 1fr 1fr; } .item { grid-row: 1 / 3; grid-column: 2 / 4; } 1 2 3 4 1 2 3 4 5 grid-row: 1 / 3; grid-column: 2 / 4; 5

Slide 126

Slide 126 text

Rows *and* Columns

Slide 127

Slide 127 text

No content

Slide 128

Slide 128 text

ROWS!!!!!!!!!!!

Slide 129

Slide 129 text

No content

Slide 130

Slide 130 text

White Space

Slide 131

Slide 131 text

“ THE VIGNELLI CANON Great designs can be achieved without the use of the grid, but the grid is a very useful tool to guarantee results. Ultimately the most important tool is the management of the white space in layouts. It is the white space that makes the layout sing. Bad layouts have no space left for breathing — every little space is covered by a cacophony of type sizes, images, and screaming titles.

Slide 132

Slide 132 text

No content

Slide 133

Slide 133 text

The Vignelli Canon

Slide 134

Slide 134 text

No content

Slide 135

Slide 135 text

No content

Slide 136

Slide 136 text

Overlap

Slide 137

Slide 137 text

No content

Slide 138

Slide 138 text

No content

Slide 139

Slide 139 text

Tracks don’t have to all be the same size.

Slide 140

Slide 140 text

No content

Slide 141

Slide 141 text

No content

Slide 142

Slide 142 text

No content

Slide 143

Slide 143 text

No content

Slide 144

Slide 144 text

from alistapart.com/article/content-out-layout

Slide 145

Slide 145 text

The New Flexibility

Slide 146

Slide 146 text

grid-template-columns: 100px 1fr 1fr minmax(40ch, 65ch) 1fr; 1fr 1fr 100px 1fr minmax(40ch, 65ch)

Slide 147

Slide 147 text

No content

Slide 148

Slide 148 text

“pixel perfect ”

Slide 149

Slide 149 text

What happens when parts of the content / interface are ‘missing’? Or are shorter / longer than ‘ideal’?

Slide 150

Slide 150 text

Design the flexibility model.

Slide 151

Slide 151 text

For more…

Slide 152

Slide 152 text

No content

Slide 153

Slide 153 text

nightly.mozilla.org

Slide 154

Slide 154 text

labs.jensimmons.com

Slide 155

Slide 155 text

jensimmons.com

Slide 156

Slide 156 text

Modern Layouts: 
 Getting Out of Our Ruts Revolutionize Your Page: 
 Real Art Direction on the Web 2015 2016 available on jensimmons.com

Slide 157

Slide 157 text

jensimmons.com @jensimmons layout.land labs.jensimmons.com Thanks!