Z
Z
zwezew2018-03-23 13:24:06
css
zwezew, 2018-03-23 13:24:06

How to properly implement padding reduction when screen height changes?

How to properly implement padding reduction when screen height changes? I tried to do it through calc(100vh - *value*), but it doesn't work correctly. The site must fit entirely on the screen of the device.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Timofeev, 2018-03-23
@webinar

describe in js padding changes on window resize event

I
Igor, 2018-03-23
@TAPAKAHATOP

Alternatively, use ViewportHeight "vh"(100vh) as the padding unit.
But without an example of the problem being solved, it's hard to say.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question