/*standard, non retina */ .postcard { background-image: url("https://cache.travelfish.org/b/assets/2015/gallery/large/postcard_forum_large_169_1449062546.jpg"); } /*standard, retina */ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), screen and (min-resolution: 144dpi), screen and (min-resolution: 144dppx) { .postcard { background-image: url("https://cache2.travelfish.org/b/assets/2015/gallery/largeR/postcard_forum_largeR_169_1449062546.jpg"); } } /*tablet, small laptop, non retina*/ @media only screen and (max-width: 1023px) { .postcard { background-image: url("https://cache3.travelfish.org/b/assets/2015/gallery/medium/postcard_forum_medium_169_1449062546.jpg"); } } /*tablet, small laptop, retina*/ @media only screen and (max-width: 1023px) and (-webkit-min-device-pixel-ratio: 1.5), only screen and (max-width: 1023px) and (min-resolution: 144dpi), only screen and (max-width: 1023px) and (min-resolution: 144dppx) { .postcard { background-image: url("https://cache.travelfish.org/b/assets/2015/gallery/mediumR/postcard_forum_mediumR_169_1449062546.jpg"); } } /*phone, small tablet, non retina*/ @media only screen and (max-width: 767px) { .postcard { background-image: url("https://cache2.travelfish.org/b/assets/2015/gallery/small/postcard_forum_small_169_1449062546.jpg"); } } /*phone, small tablet, retina*/ @media only screen and (max-width: 767px) and (-webkit-min-device-pixel-ratio: 1.5), only screen and (max-width: 767px) and (min-resolution: 144dpi), only screen and (max-width: 767px) and (min-resolution: 144dppx) { .postcard { background-image: url("https://cache3.travelfish.org/b/assets/2015/gallery/smallR/postcard_forum_smallR_169_1449062546.jpg"); } } Rock Climbing | Thailand travel forum