- This is a pretty useful guide for mobile screen sizes.
- Great guide for stats on screen resolutions
- Google Analytics data on resolutions can be valuable as well, if you have access to it.
Also, I would definitely recommend using device-width
for your mobile sizes, unless you want users to see your mobile styles when they resize their browser window on a non-mobile device. width
is the width of the viewport, and device-width
is the current resolution of the device.
Also, I think I have read that some mobile devices don’t behave as expected (with @media).
You are correct. Many devices will not give you the width
or device-width
that you expect, especially when switching between landscape and portrait (they will often give the landscape width when in portrait). Device auto-zooming can also throw a wrench into things. Using the viewport meta tag can help with many of these issues. (More info on that here)