S
S
SHentai2017-11-07 20:16:30
css
SHentai, 2017-11-07 20:16:30

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

2 answer(s)
N
Nikita Kit, 2017-11-07
@ShadowOfCasper

Thanks Please
https://www.w3schools.com/cssref/css3_pr_mediaquery.asp

A
Alexander Taratin, 2017-11-07
@Taraflex

https://github.com/BrunoFenzl/sass-proportions
css height proportional width

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question