What is the difference between max-width and max-device-width?

1

The question is exactly what is in the title, referring to the use of the media queries I am in doubt because in examples of some sites they use something like: @media screen and (max-widht:x) and other [...](max-device-width) . I would like to know the difference and which one is the right one to use.

    

asked by anonymous 16.07.2016 / 04:26

1 answer

1

max-width is the width of the target display area, for example, the browser.

max-device-width is the width of the entire rendering area of the device, ie the actual device screen.

Copied from SO-EN

It makes sense ...

    
16.07.2016 / 07:49