how do i make sure 3 div is the same size code example

Example 1: same height div css

################ HTML ########################
<div class="row">
  <div class="col">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</div>
  <div class="col">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.</div>
  <div class="col">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo.</div>
</div>

################# CSS ########################
.row {
  display: grid;
  grid-auto-flow: column;
  grid-gap: 5%;
}

.col {
  border: solid;
}

Example 2: css ditribute width equealy to child components

.wpr {
  display: flex;
  width: 400px;
}

.wpr div {
  flex: 1 2 0;
  border: 1px solid yellow;
  background: pink;
  text-align: center;
  min-height: 40px;
}

Tags:

Css Example