CSS Grid
Michael Mizner
@miznerism
Let’s talk about design
on the web today
Creativity is dead.
how did we get here?
You may ask yourself,
The Beginning
Table Layouts
Float Layouts
Frameworks
CSS Grid Layout
• First Public Draft April 2011
• Proposal developed by Microsoft
• Early implementation in IE10
• Spec has moved on. Is now very
different to the IE10 implementation.
When can I use it?
But… what about Flexbox?
Flexbox is for one-dimensional layouts
Flexbox trying to be a grid
Grid is for two-dimensional layouts
Grid working how it should
“If you are adding widths
to all your flex items, you
probably need grid.”
- Rachel Andrew
Grid is designed to be used
with flexbox, not instead of it
CSS Grid in Action
CSS Grid is kinda like
Mondrian art
References
• https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout
• https://gridbyexample.com/examples/
• https://css-tricks.com/snippets/css/complete-guide-grid/
Fun stuff!
• https://cssgridgarden.com/

CSS Grid