CSS Grid (@CSSGridTips) profile picture

A daily tip on using CSS Grid! Created by @jensimmons

Joined May 2017
Don’t assume creating a layout with Grid plus smart fallbacks is “twice as much work”. Turns out, it’s not.
4
1
14
Using CSS Grid to implement the same old 12-column grid designs is like making a film with a steadycam — and always standing still.
8
55
3
178
No one is saying Thou Shalt Use CSS Grid. Especially not to ship the same old exact layouts. Let’s not get religious. Or anti-religious. / 6
2
11
No reason to HAVE to use CSS Grid. No guilt. No pressure. It’s a new opportunity, not a mandate. You *can* get amazing new results. / 5
1
3
8
…use CSS Grid to do something new. That isn’t possible without it. (With a simple fallback layout for browsers that don't support it.) / 4
1
2
6
…make the time to learn Grid. Learn the code, or if you don’t code, learn the new mental model of what’s newly possible. And use it to… / 3
1
1
6
…that’s the same, same mental model, same results, then use today’s tools. Nothing wrong w/that! At some point, take the time to learn… / 2
1
1
6
This week, my best advice for using CSS Grid is this: it’s very different from the frameworks we’ve been using. If you want a tool that… / 1
2
8
1
15
#CSSGridTipoftheDay Consider using white space in your layout designs. Grid rows + explicit placement = white space opportunity.
8
21
#CSSGridTipoftheDay Let go of idea that your grid framework effects every part of the page. A CSS Grid only effects one element + children.
12
38
CSS Grid Tip of the Day: A Grid only applies to a single element, only effecting the direct children. Nest Grids inside Grids inside Flex…
1
5
13
Today's CSS Grid Tip of the Day: You’ll use pixels again in specifying sizing — even for flexible tracks, like `minmax(200px, 400px)`.
2
8
52
CSS Grid Tip of the Day: you probably won't set track sizes using percents. FR units are much better. Kiss all that %-based sizing goodbye.
2
25
66