2 issues with this particular example:
- different emojis have different horizontal "whitespace" which means that if I add
margin-rightto separate wide emojis from numbers, some emojis have natural "whitespace" and space gets weirdly big - emoji size is very different on MacBook 2880x1800 (15.4 inch) and external 2560x1440 (27 inch) monitor relative to the number besides it - emojis are much bigger on external monitor for some reason
Is there a way to normalize these issues (especially the 2nd one)?
PS! I know about using image emojis as a trick to get around these kinds of issues but this question is about native emojis.
Screenshots
- MacBook display
- External monitor
.item {
font-family: Arial;
background: #eee;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 4px 8px;
border-radius: 15px;
font-size: 1em;
margin-right: 10px;
}
.emoji {
margin-right: 5px;
line-height: 100%;
}
<div id="emojis">
<div class="item">
<span class="emoji">❓</span>
<span>123</span>
</div>
<div class="item">
<span class="emoji">⁉️</span>
<span>4</span>
</div>
<div class="item">
<span class="emoji"></span>
<span>732</span>
</div>
</div>

