DEV Community

Cover image for How to justify-content with flexbox
Juan Vasquez
Juan Vasquez

Posted on • Edited on

1 1

How to justify-content with flexbox

justify-content puede usar alguno de los diferentes atributos:

flex-start
Alinea elementos al lado izquierdo del contenedor.
flex-end
Alinea elementos al lado derecho del contenedor.
center
Alinea elementos en el centro del contenedor.
space-between
Muestra elementos con la misma distancia entre ellos.
space-around
Muestra elementos con la misma separación alrededor de ellos.

justify-content has diff attributes:

flex-start
Items align to the left side of the container.
flex-end
Items align to the right side of the container.
center
Items align at the center of the container.
space-between
Items display with equal spacing between them.
space-around
Items display with equal spacing around them.

Top comments (0)

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay