I have a versus which is launching random characters. On one side I have character1 and on the other character2 and in the middle the word vs. The problem is that since they are random words, the "vs" is never centered since there are words larger than others and this one rotates a lot and I have things like these
I want that regardless of the word, the "vs" is always centered even if the characters are different.
<p className="tematica__versus">{tematicaRandom.personaje1}
<span className="tematica__vs">vs</span>
{tematicaRandom.personaje2}
</p>
.tematica__versus{
font-size: 80px;
color: #e1e1e1e1;
font-weight: 700;
margin-top: 70px;
text-align: center;
}
.tematica__vs{
padding: 0 20px;
}
What I would do is group it inside a flexbox container, I leave you this link to learn a little more about flexbox
I hope to help you with this, anything you tell me, good luck!