Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'd argue that `place-content: center` is better than `place-items: center` as it would handle multiple child elements in a way most people would expect from a simple centering snippet.

place-content will position all the children to the center, which is generally what's desired here.

place-items, would make each child element center itself within its own grid square



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: