Is it possible to center the symbols that by default go above characters such as مُحَمَّد
?
.wrapper {
text-align: center;
vertical-align: center;
}
span {
font-size: 4rem;
display: inline-block;
padding: 2rem;
margin: 0.2rem;
background: pink;
}
<div class="border border-5 border-primary rounded text-white text-center p-2">
<div class="wrapper mb-4 bg-primary text-white text-center">
<span class="bg-dark"> َ</span>
<span class="bg-dark"> ْ</span>
<span class="bg-dark"> ُ</span>
</div>
</div>
I attempted:
.wrapper,
span {
display: flex;
align-items: center;
}
Unfortunately, this approach did not work.
I also experimented with placing each symbol inside an additional span with
position: absolute; top: 50%; transform: translateY(-50%);
, but that too proved unsuccessful.