Answer the question
In order to leave comments, you need to log in
How to compose a complex formula for CALC, in CSS?
Hello.
We need to make sure that css itself adjusts the height of the page at any size.
1: W-from 347 H-from 592{calc(100vh - 170px)} - all dimensions above the page are displayed normally.
2: W-up to 344 H-up to 592{calc(100vh - 200px)}}
3: W-up to 251 H-up to 592 {calc(100vh - 230px)}
4: W-up to 203 H-up to 592 {calc( 100vh - 260px)}
No medium.
Somehow it is necessary to express the aspect ratio formula from this, in order to simply enter it in calc and that's it, only I'm kind of lazy))
I hope for your help.
Answer the question
In order to leave comments, you need to log in
Thanks Please
https://www.w3schools.com/cssref/css3_pr_mediaquery.asp
https://github.com/BrunoFenzl/sass-proportions
css height proportional width
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question