News for hackers. Stuff that matters.
Re:“Tomato” versus “#FF6347” – the tragicomic history of CSS... by ghrifter on Thursday October 15, 2015 @03:13PM (#10395283)
I still can't believe you have to hack a

   margin: 0 auto;
to center stuff still...

Unless there's a new html element or css trick I'm unaware of? (like the `<center>` of old)?

Re:“Tomato” versus “#FF6347” – the tragicomic history of CSS... by floatboth on Thursday October 15, 2015 @03:30PM (#10395390)
It's not really a hack – it does make sense. Make left and right margin automatic so it would be balanced automatically.

There's flexbox, which allows vertical centering and other cool stuff.

Re:“Tomato” versus “#FF6347” – the tragicomic history of CSS... by IshKebab on Thursday October 15, 2015 @03:26PM (#10395360)
Yeah they actually finally fixed this with flexbox.
Re:“Tomato” versus “#FF6347” – the tragicomic history of CSS... by RobertKerans on Friday October 16, 2015 @01:41AM (#10397644)
`justify-content: center` when items are laid out on the x-axis, `align-items: center` when on y-axis