I have a Symbol to display in a ZxZ px
container:
.symbol {
width: 32px;
height: 32px;
border: 1px dotted;
text-align: center;
}
.symbol>span {
color: darkred;
font-size: 3em;
}
<div>Some Text
<div class="symbol"><span>☎</span></div>
</div>
I would like to adjust the font-size
always to fit the dotted square, whatever the Z
size is...
Please read the question before making it duplicate! I don't need to fit it to viewport, or in any way the question is linked with responsiveness, mobile tablets etc.
I just need a letter to adjust to its container's rectangle/div.