Last active
April 12, 2016 01:26
-
-
Save LarryMatte/7fa9b3c7e07a7226370120345d00c901 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.svg { | |
background-image: url(mySvgFile.png); /* fallback using a png file */ | |
background-image: url(mySvgFile.svg); | |
background-size: contain; | |
display: block; | |
width: 150px; | |
height: 50px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="svg"/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment