I have 3 columns and I want each column to be aligned left. I am able to do this using flexbox but it seems like a lot of overhead. Is there a better approach?
span {
display: block;
margin:5px;
}
<div style="display:flex;justify-content:center">
<div>
<span>High</span>
<span>Low</span>
<span>Mean</span>
<span>Median</span>
<span>Mode</span>
</div>
<div>
<span>=</span>
<span>=</span>
<span>=</span>
<span>=</span>
<span>=</span>
</div>
<div>
<span>100</span>
<span>80</span>
<span>94.29</span>
<span>100</span>
<span>100</span>
</div>
</div>
3
Answers
To me this looks like a table of two columns of data which when presented are joined by the = signs.
This snippet has one table with each row having the left and right values in its two cells.
The = are provided by a before pseudo element.
This structure would seem to make more sense to screen readers too as the data is linked logically.
Start with a correct HTML structure where we can actually read the data then you can rely on a table layout
Perhaps a Description List is an appropriate element to use here?