Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Media queries for retina – the basics Reply To: Media queries for retina – the basics

#151525
Alen
Participant

You shoyld be detecting pixel density not width for hi-def devices. Here’s part of my Sass mixin.

@media
  only screen and (-webkit-min-device-pixel-ratio: 1.5),
  only screen and (min--moz-device-pixel-ratio: 1.5),
  only screen and (min-device-pixel-ratio: 1.5){
    /* stuff */
}