CSS Flexbox

display: flex turns an element into a flex container whose children sit in a row. gap sets the space between items, justify-content spreads them along the main axis, and align-items aligns them on the cross axis.

CSS
.row {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}
Read the full lesson