How do I scale an SVG image?

Ánh Dương

New member
How do I scale an SVG image?
Answer
How to resize a SVG image
  1. Change width and height in XML format. Open the SVG file with your text editor. It should show lines of code as below. <svg width=”54px” height=”54px” viewBox=”0 0 54 54″ version=”1.1″ xmlns_xlink=”http://www.w3.org/1999/xlink”> …
  2. 2 . Use “background-size” Another solution is to use CSS.
 

Tìm kiếm

Back
Top