DEV Community

loading...

Discussion on: Best ways to center objects in CSS (Horizontally and Vertically )

Collapse
veslav3 profile image
Roy Honders

margin: 0 auto;

Collapse
amirjafari1992 profile image
Amir Jafari Author

Thanks Roy,
But it only works for centering items horizontally