For example, I have a <div> element like this:
.box {
display: flex;
flex-direction: column;
width: 100px;
height: 100px;
background-color: yellow;
align-items: center;
}
<div class="box">
<div class="item">1</div>
<div class="item">1/A</div>
<div class="item">1/B</div>
</div>
My goal is to align items horizontally centered by the first characters, so in the example, the '1' characters need to be centered, not the whole text.
Wanted result:
---------
| 1 |
| 1/A |
| 1/B |
---------