I tried the following css, but it doesnt help on iPad3. Only one fourth of the image fits on iPad3.What is going wrong?
.titleIcon {
float: left;
background: url(/images/sprite.png);
background-position: 0px 0px;
width: 16px;
height: 16px;
}
@media
only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and ( min--moz-device-pixel-ratio: 1.5),
only screen and ( -o-min-device-pixel-ratio: 3/2),
only screen and ( min-device-pixel-ratio: 1.5){
.titleIcon{
float: left;
background: url(/images/sprite-2x.png) no-repeat 0 0;
background-position: 0px 0px;
}
}
The ipad 3 got a pixelratio of 2, so your media queries don't work yet. Add min-device-pixel-ratio: 2 to your code.
Further reading: http://halgatewood.com/ipad-3-media-query/