How can I align the text with the very top border of its span element?
In this snippet, there seems to be some extra space caused by the line-height property. Is there a workaround for this?
.name {
display: inline-block;
line-height: 1.25;
font-size: 45px;
}
.firstname {
display: block;
background: #FFAACC;
margin-bottom: 5px;
}
<div>
<div class="ej ej1">
<span class="name">
<span class="firstname">Something Name</span>
<span class="username">
@somthig-name
</span>
</span>
</div>
</div>