S
S
syncher2016-11-02 11:55:36
css
syncher, 2016-11-02 11:55:36

By what principle is the value calculated in vw?

This site https://evilmartians.com/ uses an adaptive font value and in general for most selectors, padding, etc. For example, for html the font-size is 1.6666666666666667vw/1.2
What is the calculation principle? Isn't it done by hand? Are there any scripts/modules for this?
In general, how to competently switch to adaptive values ​​with px, em, etc.?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2016-11-02
@syncher

vw - viewport width
From my experience, I calculate the font like this:
Take the desired font size in pixels and divide by 16

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question