Re:How to Center in CSS (2015)
by RyanGoosling on Tuesday May 19, 2020 @03:26PM
(#23239017)
A box isn't text. Why don't you give it a whirl.
Re:How to Center in CSS (2015)
by ChrisMarshallNY on Tuesday May 19, 2020 @04:59PM
(#23240121)
Oh, I see. Gotcha. I use it for images and lists, so I've gotten used to it.
Cool. Thanks!
Why not? The goal is to center something with an unpredictable size.
display:block adapts to the container. display:table adapts to the contents.
This uses both.