A
A
Alex_Tysel2014-03-28 15:44:59
PHP
Alex_Tysel, 2014-03-28 15:44:59

Incorrect display of the site in vertical orientation on mobile and tablet devices

e545af8f90104319aafd9e6676ade658.jpg
Code:
yadi.sk/d/a4EzQWG8LNf5S
In horizontal orientation, everything is displayed correctly. But if you turn the tablet or phone over, this is what comes out (see image). I tried to set the height and minimum height to 100% for the body. But it did not help. What to do, tell me please?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Khirenko, 2014-03-28
@Satanpit

Use media queries in CSS
habrahabr.ru/post/119127

A
Alexander Khirenko, 2014-03-28
@Satanpit

You need to set the height to 100% not only for the body but also for the html and .wrapper + footer absolute positioning anchor down (bottom:0), and in the content block indent from the bottom to the height of the footer.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question