DEV Community

Discussion on: All the Ways to Center a Div

Collapse
mrdanielschwarz profile image
Daniel Schwarz

margin: auto; also works within Flex and Grid.