I am faced with a situation where I have two identical row-components with the CSS properties display: flex
and justify-content: space-between
:
<div class="component-row">
<div>looooooooooong</div>
<div>short</div>
<div>mediummm</div>
</div>
<div class="component-row">
<div>looooooooooong</div>
<div>short</div>
<div>mediummm</div>
</div>
The issue is that due to the varying widths of the children within each component, the spacing between them appears different. My goal is to maintain the same amount of space between each child in both component instances. While the internal spacing can vary, what I am aiming for is consistency in the space between the 1st and 2nd child of both instances, as well as the 2nd and 3rd child.