JSFiddle - React, Tailwind, and code Playground
by dholbert
HTML
<div class="container multicol">
<div>
a b c d e f g h i j k l m n o p q r s t u v w x y z
</div>
</div>
<div class="container multicol">
<div>
a<br>b<br>c<br>d<br>e<br>f<br>g<br>h<br>i<br>j<br>k<br>l<br>m<br>n<br>o<br>p<br>q<br>r<br>s<br>t<br>u<br>v<br>w<br>x<br>y<br>z
</div>
</div>
CSS
.container {
border: 3px solid black;
width: max-content;
font: 10px monospace;
}
.multicol {
column-width: 5em;
margin-bottom: 5px;
border-color: orange;
column-rule: 1px solid red;
}