Timeline for How can I make an SVG scale with its parent container?
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 27, 2023 at 6:52 | comment | added | Zeeshan |
Type 1 worked for me. Basically we just need to add the viewBox to the svgs and control the width & height via CSS.
|
|
Feb 11, 2023 at 2:01 | comment | added | EugZol | Type 2 doesn't work. Adding viewBox doesn't change anything. | |
Mar 22, 2022 at 13:19 | history | edited | ZYinMD | CC BY-SA 4.0 |
deleted 27 characters in body
|
Sep 6, 2021 at 23:03 | history | answered | ZYinMD | CC BY-SA 4.0 |