Answer the question
In order to leave comments, you need to log in
How to find font height?
Hey!
Example: jsfiddle.net
I have this problem, or I don't understand something.
In the div block I put the text and set the size:
and in addition I set the vertical padding:
Based on these properties, the height of the block should be 48 + 16 + 16 = 80px.
But, in fact, if you look in the devtool, the height of the block is 87px.
Where are these 7px coming from? What do I not understand? font-size: 48px;
padding: 16px 0;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question