How to Create Retina Graphics for your iphone or ipad
If your images not looking sharper in iphone or ipad Retina you need to make some change as following in your css.
Suppose you have a logo.png(100px*50px) for normal browser view. You need to create double size of images for Retina. Like...
Your logo.png becomes (200px*100px) for Retina.
Your logo.png becomes (200px*100px) for Retina.
'<div class="logo"></div>'
Now add following css changes on top of your css file.
only screen and (-o-min-device-pixel-ratio: 2/1),
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (min-device-pixel-ratio: 2){
.logo{
background: url("../images/nbitcoin@2x.png") no-repeat;
background-size: 100px 50px;
}
Please support us, Like us on Facebook.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment