When I create a span, button or other element with a single letter the letter doesn't take the space it needs to render and borders overlap.
How can i fix this without adding arbitrary padding?
I have create a small example. In the example the j character overflows the span element
div {
padding: 30px;
}
p>span {
font-family: 'Roboto';
font-size: 80px;
background-color: red;
border-radius: 4px;
border: 1px solid transparent;
outline: 2px solid transparent;
margin-right: 10px;
}
span:hover {
outline: 2px solid blue;
}
<div>
<p>
<span>j</span>
<span>k</span>
<span>g</span>
<span>h</span>
</p>
</div>