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

Possible duplicate:
What is the difference between max-device-width and max-width for a mobile network?

For example, this website:

http://8faces.com/ uses max-width .

This tutorial uses max-device-width :

Example:

@media screen and (max-device-width: 480px) { .column { float: none; } } 

What is the difference between the two? They work on Android, iOS, iPad, etc.

+7
source share
2 answers
+7
source

max-device-width will target devices (iphone / ipad) since max-width will target screens (browsers).

Hope this helps

+4
source

All Articles