Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Description of the "use" element on MDN
Therefore, you should specify an ID for the element inside the included SVG file and specify it when referring to this SVG file .
<svg class="part__svg">
<use xlink:href="/images/icons/cat20.svg #cat " ></use>
</svg>
UPD : Attributes inside SVG interfered with styling
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question