Last active
August 29, 2015 13:57
-
-
Save blackfalcon/9612570 to your computer and use it in GitHub Desktop.
Simple SVG example
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
.block |
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
.block { | |
background: url(http://upload.wikimedia.org/wikipedia/commons/b/b0/NewTux.svg) no-repeat 50% 0; | |
background-size: 90%; | |
width: 500px; | |
height: 500px; | |
background-color: orange; } |
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="block"></div> |
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
// ---- | |
// libsass (v0.8.6) | |
// ---- | |
$image: "http://upload.wikimedia.org/wikipedia/commons/b/b0/NewTux.svg"; | |
.block { | |
background: url(#{$image}) no-repeat 50% 0; | |
background-size: 90%; | |
width: 500px; | |
height: 500px; | |
background-color: orange; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment