K
K
Kirill2018-05-12 16:07:24
Layout
Kirill, 2018-05-12 16:07:24

@media doesn't work on phone, (min-width: 480px) and (max-width: 720px) - phone resolution is 720 width, what is it?

@media (min-width: 480px) and (max-width: 720px) {
    h1 {
        color: red;
    }
}

If you set a smaller range, then the styles work, what is the reason for this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
Cyril, 2018-05-12
@PainMain

This means that the screen width for the browser on your phone is <480px.

I
ivasenkoartem, 2018-05-12
@ivasenkoartem

Width less

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question