3 ms·
> (also don’t ask why justify-content became justify-items) It didn't. `justify-content` works with grid too, and will bunch all the grid cells into the center
by joestrong 2y ago
> (also don’t ask why justify-content became justify-items)
It didn't. `justify-content` works with grid too, and will bunch all the grid cells into the center. `justify-items` is if you want the contents of each grid cell to be centered.
Also, `place-content` or `place-items` for grid does both the horizontal & vertical at the same time.
I admit that CSS isn't always obvious how it works, but it seems like the author didn't care to check
- tonsky 2y agoThat’s what ChatGPT told me
- latexr 2y agoI genuinely expected more of your writing and research (I’ve read your blog before) than regurgitating ChatGPT output without thorough verification and then using that as a defense when the error is brought to your attention. I expected you to understand ChatGPT cannot be blindly trusted. This undermines trust in all technical parts of your writing.
- joelanman 2y agoalso it's not named horizontal and vertical because it depends on the direction of the text - some text reads vertically