Is there a way to resize an image for retina display without using different images or setting it as a background image?
I have a plan to use 800x600 px images and downsample them to 400x300 for normal displays. For retina displays, I want to keep the image at 800x600 but with double the pixel density to achieve the appearance of 400x300 with higher resolution.
Can this be accomplished using CSS?
I've tried using media queries like the one below to detect retina displays:
@media only screen and (-webkit-min-device-pixel-ratio: 2) {}
However, I'm not sure how to make the images appear at twice the pixel density on retina screens to effectively halve their size visually.