News for hackers. Stuff that matters.
Re:How to center a div in CSS by mixmastamyk on Tuesday February 13, 2024 @04:40PM (#39363209)
It worked exactly that way with tables, attributes align and valign:

https://www.geeksforgeeks.org/html-td-tag/

Re:How to center a div in CSS by JacobThreeThree on Tuesday February 13, 2024 @05:25PM (#39363674)
Tables only ever "worked" when compared to the poor implementation and browser support of the alternatives of its time.

In today's web landscape using tables to center categorically fails to work in many scenarios that will work with flexbox.

Re:How to center a div in CSS by mixmastamyk on Tuesday February 13, 2024 @05:54PM (#39363991)
They worked great and still do for the vast majority of use cases.

The fact it took over two decades to surpass is not a compliment at all. Considering "internet time" (first identified in the 90s), it's a disgrace.