0

imageuploadimg.pngimageuploadimg@2x.png

I have set a retina background image for a div.Its displaying properly in firefox but its looking darker in chrome.How to fix this issue? Refer fiddle

Output-Difference between chrome and firefox

Html

<div class="retina_img">

</div>

Css

.retina_img
 {
    background: url("imageuploadimg.png") no-repeat scroll 0 50% / 100% 100% #FFFFFF;
    background:-webkit-image-set( url('imageuploadimg.png') 1x,url('imageuploadimg@2x.png') 2x);
    width: 142px;
    height: 101px;
}
Rama Priya
  • 2,387
  • 7
  • 28
  • 39

0 Answers0