Hacker News new | ask | show | jobs
by joestrong 796 days 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

2 comments

also it's not named horizontal and vertical because it depends on the direction of the text - some text reads vertically
That’s what ChatGPT told me
I 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.