Home › Forums › CSS › Can SVG sprites work in CSS? › Reply To: Can SVG sprites work in CSS?
January 28, 2018 at 3:18 am
#266085
grimski
Participant
Sorry, basically how you would normally set a background-image
in a CSS file. Like this…
.item {
background-color: black;
background-image: url(...img/sprite/sprite.svg#icon-phone);
background-repeat: no-repeat;
background-size: 20px;
}
Yeah I don’t think it’s possible either but I just thought I’d ask as it’d save me having duplicated images! :)