Answers for "css change svg size"

CSS
1

css svg width 100%

<svg height="100%" width="100%" viewBox="0 0 100 100"  preserveAspectRatio="none">
   <path d="M0 0 L100 0 L50 100 Z" />
</svg>
Posted by: Guest on August-31-2020
1

css svg width font size

<svg height="1em" width="1em">...</svg>
Posted by: Guest on April-18-2022
2

bootstrap 4 auto resize svg image

<img src="monkey.svg" alt="Monkey face" style="width: 100%; height: auto;">
Posted by: Guest on November-25-2020

Browse Popular Code Answers by Language