DEV Community

Discussion on: How to center things in CSS 💘

Collapse
 
alvaromontoro profile image
Alvaro Montoro

That would only center horizontally though.

Collapse
 
danielpdev profile image
danielpdev

Yes, that's right.
Although, to align both horizontally and vertically you can also use margin in combination with position.

here is an example