> ## Content Index
> Fetch the complete content index at: https://scottlet.org/llms.txt
> Use this file to discover other available public pages before exploring further.

# Retina background images and IE8
- URL: https://scottlet.org/2014/07/31/retina-background-images-and-ie8/
- Published: 2014-07-31T14:54:55.000Z
- Updated: 2014-07-31T15:09:42.000Z
- Author: Scott van Looy
- Tags: #Import 2026-10-26 07:20

Quick tip, with thanks to David Owens for the inspiration.

Problem: IE8 doesn't support background-size, so you have to include a separate stylesheet with separate background images just for IE8 if you have to code for it.

Solution:

background:url('../img/non-retina.png') no-repeat center right;
background-image:url('../img/retina@2x.png'), none;

This will serve a non-retina image to IE8 and a retina image to everything else, which can be sized with `background-size`. IE8 doesn't support multiple backgrounds per element, [everything else](http://caniuse.com/multibackgrounds?ref=scottlet.org) does.

Combine with the technique of saving retina sized JPEGs at really low quality (\~30% - example [here](http://03sq.net/akqa/retina/?ref=scottlet.org)) to address all browsers with the same images and not have to worry about any image replacement malarkey or  elements or the like...

Thursday Top Tip!