G
G
Genri_Rus2020-04-22 00:33:54
css
Genri_Rus, 2020-04-22 00:33:54

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;
}

I have a logo font-size: 3.3rem = 33px;

And how to calculate line-height for a logo?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
profesor08, 2020-04-22
@Genri_Rus

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 question

Ask a Question

731 491 924 answers to any question