Reputation: 14219
Assuming the following HTML:
<p><span style="font-size: 40px;">A</span>a</p>
Is it possible to get the second character to align to the center of the first?
The second character is aligned to the bottom of the first character in this example:
However, I want the second character to be aligned to the middle of the first character:
Upvotes: 8
Views: 9091
Reputation: 1512
Add vertical-align:middle;
to the <span>
(example):
<p><span style="font-size: 40px;vertical-align: middle;">A</span>a</p>
Upvotes: 5