Use Open Iconic's SVG Sprite
masterThe SVG sprite allows you to load all icons in a single request. To use an icon, reference its ID within the open-iconic.svg file using the <use> tag.
Styling Tips:
- Sizing: Set equal
widthandheighton the<svg>tag. - Coloring: Use the CSS
fillproperty on the<use>tag to change the icon color. - Best Practice: Add a general class to the
<svg>tag and a unique class to the<use>tag for easier styling.
<svg class="icon">
<use xlink:href="open-iconic.svg#account-login" class="icon-account-login"></use>
</svg>