3 ms·
> You don't need the style="text-align:center" on your wrapper element Why not? The goal is to center something with an unpredictable size. display:block adap
by ChrisMarshallNY 7y ago
> You don't need the style="text-align:center" on your wrapper element
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.
- RyanGoosling 7y agoA box isn't text. Why don't you give it a whirl.
- ChrisMarshallNY 7y agoOh, I see. Gotcha. I use it for images and lists, so I've gotten used to it. Cool. Thanks!