O
O
OldKelt2019-12-18 12:25:33
Adaptive design
OldKelt, 2019-12-18 12:25:33

How to set values ​​for max-width 768 and less with adaptive layout (it doesn't work for me for some reason)?

I am making my first site, so please do not swear strongly for the curvature and primitivism.
The bottom line is that after the values ​​​​for max-width 991 for all other resolutions, the changes do not work. But if I copy the lines for, for example, max-width 768 before max-width 991, then everything works fine. Where am I dumb?
5df9f0784e0ac898667146.jpeg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
Faber Estello, 2019-12-18
@senselessV7

With max-width from larger to smaller :

@media (max-width: 992px) {...}
@media (max-width: 768px) {...}

With min-width from smaller to larger:
@media (min-width: 768px) {...}
@media (min-width: 992px) {...}

D
Darya Shvakh, 2020-04-12
@DariaShvakh

OldKelt , Good afternoon.
Often

<meta name="viewport" content="width=device-width, initial-scale=1">

But it also happens
@media screen and (min-width: 320px) and (max-width: 768px) {
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question