<h1>Percentage:</h1>

<div class="container container-percentage">
  <p class="column">1</p>
  <p class="column">2</p>
  <p class="column">3</p>  
</div>

<h1>fr unit:</h1>

<div class="container container-fr">
  <p class="column">1</p>
  <p class="column">2</p>
  <p class="column">3</p>  
</div>
.container-percentage {
  display: grid;
  grid-template-columns: 33.3% 33.3% 33.3%;
  gap: 10px;
}

.container-fr {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

/* etc: */

body {
  margin: 1.5em;
  font-size: 130%;
}

.column {
  background: #b3e888;
  padding: 1em;
  margin-top: 0;
  margin-bottom: 0;
  font-family: monospace;
  text-align: center;
  border: 1px solid darkgreen;
  /* "border-collapse" hack */
  margin-left: -1px;
  margin-top: -1px;
}

.container {
  border: 5px solid black;
  padding: 1em;
  margin-bottom: 2em;  
}

h1 {
  font-size: 1.5rem;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.