Answer the question
In order to leave comments, you need to log in
What are the ways to proportionally compress page content for adaptive layout?
Now in the project I use the sass function:
@function calcFluidSize($f-min, $f-max, $v-min, $v-max) {
$k: ($f-max - $f-min)/($v-max - $v-min);
$b: $f-min - $k * $v-min;
$b: $b * 1px;
@return calc( #{$k} * 100vw + #{$b} );
}
padding: 1px calc( .04849 * 100vw + -33.10345px)
Answer the question
In order to leave comments, you need to log in
layout all sizes in 'em'
reducing the font-size of the block will proportionally reduce the entire layout inside, starting at least with the body
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question