Created
December 5, 2016 09:57
-
-
Save ariona/7db2eb83571ec4b5cda87dd3749dd06b to your computer and use it in GitHub Desktop.
svg text background
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
.site-hero .intro-block svg .img-layer { | |
fill: url(#p-img); | |
} |
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 viewBox="0 0 200 200"> | |
<pattern id="p-img" viewBox="0 0 200 200" patternUnits="userSpaceOnUse" width="100%" height="100%" x="13.290366350067842" y="-17.172659430122117"> | |
<image xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/content/themes/startuplab/assets/images/lab-start2.jpg" width="100%" height="100%"></image> | |
</pattern> | |
<text text-anchor="middle" x="50%" y="50%" dy=".35em" class="img-layer"> | |
Lab | |
</text> | |
</svg> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment