H
H
habrdima2017-08-04 19:04:00
css
habrdima, 2017-08-04 19:04:00

Max-device-width logic?

What is the logic behind this media function? media starts working when I specify pixels larger than my device,

@media screen and  (max-device-width : 1366px){
    header{
        display: none;
    }
}

but a simple max-width: 900px works when the window is less than 900px, shouldn't it be the same logic?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Goryachev, 2017-08-04
@webirus

https://habrahabr.ru/company/paysto/blog/254871/
width and device-width are like different things)

S
Stas Melnikov, 2017-08-06
@melnik909

device-width is a deprecated feature in the new version of the standard https://www.w3.org/TR/mediaqueries-4/#mf-deprecated

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question