miércoles, agosto 16, 2023

How-to center a div and how-to center the content inside of it

You could center a div with

margin: auto


And you could center its content using

text-align: center;


Example

See the Pen Untitled by Wilson Camilo Uribe Neira (@kmilo0) on CodePen.

No hay comentarios.: