Struggling to create a CSS component where the first and last points don't align properly with the ends of the line.
This component should be able to handle any number of points (between 1 and 4) without relying on flexbox.
I have a React component generating HTML like this:
<div class="row">
<div class="col first" style="width:33%">
<div class="marker complete"></div>
<label>Feedback</label>
</div>
<div class="col" style="width:33%">
<div class="marker partial"></div>
<label>Observation</label>
</div>
<div class="col last" style="width:33%">
<div class="marker review"></div>
<label>Documentation</label>
</div>
</div>
The JavaScript calculates column sizes before rendering, and I'm currently centering content in each column in my Codepen demo.
To position the end items, I've used the `first` and `last` classes for relative positioning, but when the screen size changes, the line edges start showing behind the points. Any suggestions for a better layout approach?