6 Different #CSS Centering Grid & Flex Layouts 👍
`place-items: center`
`place-content: center`
when used with..
`display: flex` vs `display: grid`
What's the difference?
What do they even do?!
I got ya 👇🤓
codepen.io/argyleink/pen/Poq…
ALT .center {
display: flex;
place-items: center;
}
vs
.center {
display: grid;
place-content: center;
}
ALT screenshot of codepen rendered site which has 6 different centered examples
I think it would be cool to see a lot more developers making a proper healthy living on open source. If nothing else it would make me feel like this whole ecosystem is more stable. css-tricks.com/open-source-s…
This is an age-old problem on the web. Sometimes when you open UI elements, they need to be edge-aware to prevent the content from triggering weird scrollbars, or worse, cutting off content. css-tricks.com/can-css-preve…
The CSS-Tricks site relies on well over 100 custom fields in WordPress — but continue to see them overlooked as a first class WordPress feature. Here's a full overview of how we use 'em with a bunch of examples and how-to's. css-tricks.com/use-custom-fi…
A nice one from @madsstoumann covering :where, :is, and other modern CSS features we have to work with the Cascade rather than against it. css-tricks.com/dont-fight-th…