New Tools for CSS Layout

A presentation at W3C Workshop on Digital Publication Layout and Presentation in September 2018 in Tokyo, Japan by Rachel Andrew

Slide 1

Slide 1

New Tools for CSS Layout Rachel Andrew @rachelandrew Slides & Code at https://noti.st/rachelandrew

Slide 2

Slide 2

I do web stuff. Web developer since 1996, teaching CSS for almost as long. Co-founder Perch CMS & Notist. Author or co-author of 23 books on web development. Smashing Magazine Editor in Chief. Writer for MDN. CSS Working Group Invited Expert. Google Developer Expert. I like long runs and small airplanes. Slides & Code at https://noti.st/rachelandrew

Slide 3

Slide 3

A layout system for CSS For the first time! Slides & Code at https://noti.st/rachelandrew

Slide 4

Slide 4

A layout system for CSS Flexbox Grid Layout Multiple-column Layout Floats CSS Positioned Layout Slides & Code at https://noti.st/rachelandrew

Slide 5

Slide 5

Brought together by … Box Alignment Intrinsic and Extrinsic Sizing Logical Properties and Values Slides & Code at https://noti.st/rachelandrew

Slide 6

Slide 6

Flexbox Layout in one dimension. A row or a column. Slides & Code at https://noti.st/rachelandrew

Slide 7

Slide 7

Slides & Code at https://noti.st/rachelandrew

Slide 8

Slide 8

https://codepen.io/rachelandrew/pen/qMYqYL Inline Dimension Slides & Code at https://noti.st/rachelandrew

Slide 9

Slide 9

Slides & Code at https://noti.st/rachelandrew

Slide 10

Slide 10

https://codepen.io/rachelandrew/pen/XPqjpX Block Dimension Slides & Code at https://noti.st/rachelandrew

Slide 11

Slide 11

Slides & Code at https://noti.st/rachelandrew

Slide 12

Slide 12

https://codepen.io/rachelandrew/pen/JavRqM Block Dimension Slides & Code at https://noti.st/rachelandrew

Slide 13

Slide 13

Start Left to Right Slides & Code at https://noti.st/rachelandrew

Slide 14

Slide 14

Start Right to Left Slides & Code at https://noti.st/rachelandrew

Slide 15

Slide 15

Slides & Code at https://noti.st/rachelandrew

Slide 16

Slide 16

https://codepen.io/rachelandrew/pen/GXdjNd Inline Slides & Code at https://noti.st/rachelandrew Block

Slide 17

Slide 17

Slides & Code at https://noti.st/rachelandrew

Slide 18

Slide 18

https://codepen.io/rachelandrew/pen/ZMoBGe Inline Slides & Code at https://noti.st/rachelandrew Block

Slide 19

Slide 19

Slides & Code at https://noti.st/rachelandrew

Slide 20

Slide 20

https://codepen.io/rachelandrew/pen/dqeOXg Inline Slides & Code at https://noti.st/rachelandrew Block

Slide 21

Slide 21

Slides & Code at https://noti.st/rachelandrew

Slide 22

Slide 22

https://codepen.io/rachelandrew/pen/VGxmKq Slides & Code at https://noti.st/rachelandrew

Slide 23

Slide 23

CSS Grid Layout Layout in two dimensions. Rows and Columns. Slides & Code at https://noti.st/rachelandrew

Slide 24

Slide 24

Slides & Code at https://noti.st/rachelandrew

Slide 25

Slide 25

https://codepen.io/rachelandrew/pen/mGLOKd Slides & Code at https://noti.st/rachelandrew

Slide 26

Slide 26

Slides & Code at https://noti.st/rachelandrew

Slide 27

Slide 27

Firefox Grid Inspector https://developer.mozilla.org/en-US/docs/Tools/Page_Inspector/How_to/Examine_grid_layouts Slides & Code at https://noti.st/rachelandrew

Slide 28

Slide 28

Slides & Code at https://noti.st/rachelandrew

Slide 29

Slide 29

Slides & Code at https://noti.st/rachelandrew

Slide 30

Slide 30

https://codepen.io/rachelandrew/pen/PdebXZ Inline Slides & Code at https://noti.st/rachelandrew Block

Slide 31

Slide 31

Slides & Code at https://noti.st/rachelandrew

Slide 32

Slide 32

https://codepen.io/rachelandrew/pen/mGLRRr Inline Slides & Code at https://noti.st/rachelandrew Block

Slide 33

Slide 33

Slides & Code at https://noti.st/rachelandrew

Slide 34

Slide 34

https://codepen.io/rachelandrew/pen/GXdWpQ Slides & Code at https://noti.st/rachelandrew

Slide 35

Slide 35

https://codepen.io/rachelandrew/pen/GXdWpQ Left to Right Slides & Code at https://noti.st/rachelandrew Right to Left

Slide 36

Slide 36

A true system for layout Designed for the job. Writing mode aware. Consistent. Slides & Code at https://noti.st/rachelandrew

Slide 37

Slide 37

What’s next? CSS Grid Level 2 “subgrids” Slides & Code at https://noti.st/rachelandrew

Slide 38

Slide 38

Slides & Code at https://noti.st/rachelandrew

Slide 39

Slide 39

What’s next? Logical Properties & Values Slides & Code at https://noti.st/rachelandrew

Slide 40

Slide 40

Slides & Code at https://noti.st/rachelandrew

Slide 41

Slide 41

What’s next? Box Alignment in Block Layout Slides & Code at https://noti.st/rachelandrew

Slide 42

Slide 42

What’s next? What’s important to you? Slides & Code at https://noti.st/rachelandrew

Slide 43

Slide 43

Thank you! https://noti.st/rachelandrew/tJeWKI Slides & Code at https://noti.st/rachelandrew