1

I am developing a website and in it I am using media queries. My Example Query is shown below

only screen and (min-resolution:161dpi) and (max-resolution:192dpi),
only screen and (-webkit-min-device-pixel-ratio: 1.67)
(-webkit-max-device-pixel-ratio:2)

But when I ran it on blackberry, it didn't pick the respective css style and when I changed the -webkit-min-device-pixel-ratio from 1.67 to 1, it ran fine.

So my question is that what's the proper way to calculate the pixel ratio that will work fine with resolution also?

James Donnelly
  • 126,410
  • 34
  • 208
  • 218
saadsaf
  • 1,421
  • 1
  • 17
  • 28

0 Answers0