I am faced with the challenge of only circling a single letter within a word that is contained in an H1 tag. While creating a circle around text is easy, I specifically need to target just one letter:
.large {
font-size: 5em;
}
.circle {
border-radius: 50%;
padding: -0.5% 5% 0% 5%;
background: #fff;
border: 10px solid red;
color: red;
}
<h1 class="large">
<span class="circle">e</span>Text
</h1>
Check out the Fiddle here: https://jsfiddle.net/henzen/zwph2nsv/4/ This code snippet produces the following output:
https://i.sstatic.net/khte9.png
The circle seems to match the height of the H1 element (as far as I can tell) - my goal is to reduce its vertical size so that it hugs the "e" closely both vertically and horizontally.
Is there a way to achieve this without separating the "e" from the rest of the word in the HTML markup?
I have experimented with Unicode characters like ⓔ, but they don't offer consistent styling across various browsers.
Any advice or suggestions would be greatly appreciated.