how to align elements horizontally in css
snippet in html

how to align elements horizontally in css

user3763

.row {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.block {
  width: 100px;
}

how to align elements horizontally in css

user5584

<div class="row">
  <div class="block">Lorem</div>
  <div class="block">Ipsum</div>
  <div class="block">Dolor</div>
</div>