G
G
Grabonovich2020-02-24 15:17:38
Layout
Grabonovich, 2020-02-24 15:17:38

Why doesn't responsiveness work on specific devices?

Adaptively layout the site on localhost, when checking, I noticed a trick: the media query works at an arbitrary size without specifying the device:
5e53be18eeb24373744855.png
But at the same time, if you specify an Ipad as the device, which has the same dimensions, the desired picture disappears abruptly :
5e53bec6a695a370817597.png
The media query itself looks like this :

@media (max-width: 770px) {
        .main-box {
                display: block;
                text-align: center;
        }

        .index-moon {
                margin: 0;
        }

        .description {
                display: block;
        }

        h1 {
                text-align: center;
                margin: 0;
        }
}

I want to point out that the custom size was displaying the NON-Touch version, so somehow it works differently on touch devices.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question