News for hackers. Stuff that matters.
Re:AI could be the end of the digital wave, not the next big... by TheOtherHobbes on Monday April 13, 2026 @10:35AM (#47752608)
Does anyone know how to centre a div?

Last time I looked there were at least seven ways to do it.

Re:AI could be the end of the digital wave, not the next big... by queenkjuul on Monday April 13, 2026 @11:56AM (#47753932)
Flexbox, mate
Re:AI could be the end of the digital wave, not the next big... by papa0101 on Monday April 13, 2026 @10:54AM (#47752901)
margin: auto, or flex align-items/justify-content are my go-tos
Re:AI could be the end of the digital wave, not the next big... by bdangubic on Monday April 13, 2026 @01:15PM (#47755117)
I think "How to center a DIV" was at the top of HN way more times than it should have been :)