A
A
Alexander F2017-04-02 11:04:47
css
Alexander F, 2017-04-02 11:04:47

Where do the values ​​in this formula come from?

Hello! In the example for this article on this article on Habré , there is such a formula that interested me for calculating the font size: font-size: calc( 12px + (20 - 12) * ((100vw - 400px) / ( 1200 - 400))). Tell me where is she from? Where do the values ​​come from? And where can you read about it?
Here is an example

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Bogachev, 2017-04-02
@lex63

https://www.smashingmagazine.com/2016/05/fluid-type...

E
Eugene, 2017-04-02
@e_snegirev

It's only strange why so many calculations, if all this is reduced to this form
Font-size: calc(1vw + 8px)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question