The media type handheld
is pretty much useless because modern smartphones and similar devices (at least Android browsers for Android and iOS) do not use it to avoid getting the minimum minimum formatting designed for older devices.
I recommend using media queries. Please note that you can request a resolution, as well as a size, and you can request a size in physical units (in, pt, cm), as well as in pixels. (However, I do not know if the devices report sufficiently accurate physical unit sizes.)
However , when appropriate, you should not be designed for specific devices, but for your site to work well at any scale (the current buzzword for this is responsive design, and a lot has been written about the methods for this). My personal approach is to write a stylesheet almost completely in terms of em
(units of measure for line height), and then use media queries to switch the layout in cases where a particular layout only works in a certain size range; and since size is defined in terms of em
, the media request must be recorded in terms of em
. The advantage of this is that the font size is a reasonable proxy for a reasonable screen size for the elements on the screen, which reflects the viewing distance and (if the user spent time setting up his browser) the user's eye / hand capabilities.
source share