Having trouble using a single letter as a logo due to the size of the containing box, known as the 'em-box', being too large or too small? Click here for an example:
https://i.sstatic.net/4MJpr.png
I want the letter to fit perfectly within the circle, similar to the 'w' logo, but when I try it with the 'b' letter, it's completely misaligned.
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@200&family=Press+Start+2P&display=swap');
.container {
display: flex;
gap: 30px;
}
.circle {
display: flex;
height: 175px;
width: 175px;
justify-content: center;
align-items: center;
border-radius: 100px;
background: #1231b3;
}
.text {
display: flex;
font-family: 'Press Start 2P';
font-size: 120px;
color: white;
background-color: light-blue;
}
.light {
background: #7c8dd7;
}
<div class="container">
<div class="circle">
<div class="text">b</div>
</div>
<div class="circle">
<div class="text light">b</div>
</div>
</div>