I want the dash to be vertically centered with the text on the right and I want them to be 10px apart. But when I'm using flex, the text on the right wraps normally, but takes more than its content's actual size, and now the gap between the two spans is too wide. Is there an elegant solution to this ?
ul {
width: 300px;
list-style: none;
text-align: center;
font-size: 20px;
}
li {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
span.dash {
margin-right: 10px;
}
<ul>
<li><span class="dash">-</span><span>+ 10€ pour séance à domicile (déplacement inclus)</span></li>
</ul>