Created
August 3, 2020 01:39
-
-
Save privatenumber/1751e866983d25a918fbb9ba2b11cc63 to your computer and use it in GitHub Desktop.
SVG referencing
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
<!doctype html> | |
<html> | |
<body> | |
<svg style="display: none"> | |
<defs> | |
<svg id="plus"> | |
<path d="M8 2V14M2 8H14" stroke="black" stroke-width="2"/> | |
</svg> | |
<svg id="circle"> | |
<circle cx="8" cy="8" r="8" fill="black" /> | |
</svg> | |
</defs> | |
</svg> | |
<svg class="icon" width="16" height="16"> | |
<use href="#plus" /> | |
</svg> | |
<svg class="icon" width="16" height="16"> | |
<use href="#circle" /> | |
</svg> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment