Hacker News new | ask | show | jobs
by asiando 1968 days ago
There’s a good reason why there are no real DPI media queries: You should not decide how big things appear on the screen, that’s up to the user. The user has the ability to change resolution or to change the website’s zoom level, you should never access the real size and decide that a button must be exactly 1cm wide in real life on every screen for everyone.

Just design for the default and then people will zoom or change resolution if the default isn’t enough.

1 comments

What about the min-resolution media query?

  @media only screen and (-webkit-min-device-pixel-ratio: 1.3),
 only screen and (min-resolution: 120dpi)
 {
  /* High DPI code */
 }