How can you use media queries to target devices with retina displays specifically?

  • @media (device-resolution: 2x)
  • @media (min-device-pixel-ratio: 2)
  • @media (min-resolution: 192dpi)
  • @media (min-resolution: 2dppx)
To target devices with retina displays specifically, you can use the @media query and specify the min-device-pixel-ratio property. The value of 2 represents a typical retina display, where each CSS pixel corresponds to 2 physical device pixels. So, the correct option is @media (min-device-pixel-ratio: 2).
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *