I\'m building a portfolio website.
-
- If the svg file has a height and width already defined
width="100" height="100"
in the svg file then add this x="0px" y="0px" width="100" height="100" viewBox="0 0 100 100"
while keeping the already defined width="100" height="100"
.
- Then you can scale the svg in your css file by using a selector in your case
img
so you could then do this: img{height: 20px; width: 20px;}
and the image will scale.