11. Flexbox: arranging items in a row
Este artículo se traducirá automáticamente. Por ahora se muestra en inglés.
Set display: flex on a container and its children line up in a row. justify-content spreads them along the row, and align-items moves them up or down. gap sets the space between items.
Flexbox is the simplest modern tool for menus, toolbars and card rows.
Ver ejemplo
.row {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
}
✍️ Ahora te toca
Make .row a flex container with justify-content center and a gap of 10px.