Home › Forums › CSS › SVG Sprite Symbols as CSS Content or Background? › Reply To: SVG Sprite Symbols as CSS Content or Background?
January 27, 2017 at 8:11 am
#250594
Participant
Yep, it is possible using Fragment identifiers. The implementation you’re using requires the CSS:
.title:after { background-image: url(directory/path-to-svg-sprite.svg#arrow-right); }
That should do it! Example here: http://codepen.io/rgba/pen/EZbVLR
The caveat is that the current version of Safari doesn’t support fragment identifiers within CSS.