News for hackers. Stuff that matters.
Re:How to center a div in CSS by alpaca128 on Tuesday February 13, 2024 @05:36PM (#39363810)
> For example, what does `<div centered>` do when there are two children?

Force me to use the advanced option or to wrap the two children in a centered container? I am certain this wouldn't cover many, many edge cases, but they are called edge cases for a reason.

Edit: People can complain about tables etc being the wrong approach all they like, in the end those examples are only proof that the proper way could be at least as simple for the average case.

There are no comments on this comment yet.