Answer the question
In order to leave comments, you need to log in
How to remove the fixed size of SVG?
Good day.
I am embedding svg into the page inline - the client studio insisted on such display of icons, and I'm used to sprites.
Using GULP.js, I create an svg sprite, embed it on the page, and then, when I need an icon, I call it:
<i class="icon">
<svg class="icon__svg icon-light">
<use x="0" y="0" xlink:href="#icon-light" />
</svg>
</i>
<svg></svg>
has its own width of 300x150 pixels. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question