Answer the question
In order to leave comments, you need to log in
How to calculate line-height if font size is known?
I use these settings:
html {
font-size: 62.5%;
}
body {
font-size: 16px;
font-size: 1.6rem;
}
Answer the question
In order to leave comments, you need to log in
No, it's different for each font. The only thing is to make N divs, give them a font size from 1 to N and look at the height of each, it will be equal to the line height. Write it down somewhere and use the scss mixin. Or manually type in where necessary in css.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question