Often see people give DPI resolution on his Media Query for mobile. What is it for? Does it serve a purpose? Do we need it?
I normally build my media queries for all devices (desktop, tablet and smartphone) like this:
@media only screen and (device-width: 22.5em)
and (device-height: 40em)
and (orientation: landscape )
@media only screen and (device-width: 22.5em)
and (device-height: 40em)
and (orientation: portrait )
Should I also be using DPI resolution (eg min-resolution: 192dpi
) in my media queries for mobile in some cases?