Why is SVG not scaling?

Why is SVG not scaling?
Answer
SVGs are different than bitmap images such as PNG etc. If an SVG has a viewBox – as yours appear to – then it will be scaled to fit it’s defined viewport. It won’t directly scale like a PNG would. So increasing the width of the img won’t make the icons any taller if the height is restricted.
 

Tìm kiếm

Back
Top