New Tools for CSS Layout Rachel Andrew @rachelandrew
Slides & Code at https://noti.st/rachelandrew
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
A layout system for CSS For the first time!
Slides & Code at https://noti.st/rachelandrew
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
Brought together by … Box Alignment Intrinsic and Extrinsic Sizing Logical Properties and Values
Slides & Code at https://noti.st/rachelandrew
Slide 6
Flexbox Layout in one dimension. A row or a column.
Slides & Code at https://noti.st/rachelandrew
Slide 7
Slides & Code at https://noti.st/rachelandrew
Slide 8
https://codepen.io/rachelandrew/pen/qMYqYL
Inline Dimension
Slides & Code at https://noti.st/rachelandrew
Slide 9
Slides & Code at https://noti.st/rachelandrew
Slide 10
https://codepen.io/rachelandrew/pen/XPqjpX Block Dimension
Slides & Code at https://noti.st/rachelandrew
Slide 11
Slides & Code at https://noti.st/rachelandrew
Slide 12
https://codepen.io/rachelandrew/pen/JavRqM
Block Dimension
Slides & Code at https://noti.st/rachelandrew
Slide 13
Start Left to Right
Slides & Code at https://noti.st/rachelandrew
Slide 14
Start Right to Left
Slides & Code at https://noti.st/rachelandrew
Slide 15
Slides & Code at https://noti.st/rachelandrew
Slide 16
https://codepen.io/rachelandrew/pen/GXdjNd Inline
Slides & Code at https://noti.st/rachelandrew
Block
Slide 17
Slides & Code at https://noti.st/rachelandrew
Slide 18
https://codepen.io/rachelandrew/pen/ZMoBGe Inline
Slides & Code at https://noti.st/rachelandrew
Block
Slide 19
Slides & Code at https://noti.st/rachelandrew
Slide 20
https://codepen.io/rachelandrew/pen/dqeOXg Inline
Slides & Code at https://noti.st/rachelandrew
Block
Slide 21
Slides & Code at https://noti.st/rachelandrew
Slide 22
https://codepen.io/rachelandrew/pen/VGxmKq
Slides & Code at https://noti.st/rachelandrew
Slide 23
CSS Grid Layout Layout in two dimensions. Rows and Columns.
Slides & Code at https://noti.st/rachelandrew
Slide 24
Slides & Code at https://noti.st/rachelandrew
Slide 25
https://codepen.io/rachelandrew/pen/mGLOKd
Slides & Code at https://noti.st/rachelandrew
Slide 26
Slides & Code at https://noti.st/rachelandrew
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
Slides & Code at https://noti.st/rachelandrew
Slide 29
Slides & Code at https://noti.st/rachelandrew
Slide 30
https://codepen.io/rachelandrew/pen/PdebXZ
Inline
Slides & Code at https://noti.st/rachelandrew
Block
Slide 31
Slides & Code at https://noti.st/rachelandrew
Slide 32
https://codepen.io/rachelandrew/pen/mGLRRr
Inline
Slides & Code at https://noti.st/rachelandrew
Block
Slide 33
Slides & Code at https://noti.st/rachelandrew
Slide 34
https://codepen.io/rachelandrew/pen/GXdWpQ
Slides & Code at https://noti.st/rachelandrew
Slide 35
https://codepen.io/rachelandrew/pen/GXdWpQ
Left to Right
Slides & Code at https://noti.st/rachelandrew
Right to Left
Slide 36
A true system for layout Designed for the job. Writing mode aware. Consistent.
Slides & Code at https://noti.st/rachelandrew