Skip to content

Instantly share code, notes, and snippets.

@oli
Created February 6, 2013 07:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oli/4720848 to your computer and use it in GitHub Desktop.
Save oli/4720848 to your computer and use it in GitHub Desktop.
AppStore Badge with SVG and fallback to png
/**
* AppStore Badge with SVG and fallback to png
*/
.b-download__app-store-badge {
display: inline-block;
background: url('http://www.leechy.ru/inn/appstore-en.png') no-repeat;
background: none, url('http://www.leechy.ru/inn/appstore-en.svg') no-repeat;
background-size: 100% 100%;
width: 135px;
height: 40px;
}
.b-download__app-store {
background: url('http://www.leechy.ru/inn/appstore-en.png') no-repeat;
width: 135px;
height: 40px;
}
<p><span class="b-download__app-store-badge"></span></p>
<p><img src="http://www.leechy.ru/inn/appstore-en.svg" class="b-download__app-store"></p>
// alert('Hello world!');
{"view":"split","fontsize":"90","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment