Making SVGs Responsive with CSS

PHOTO EMBED

Fri Dec 31 2021 13:58:42 GMT+0000 (Coordinated Universal Time)

Saved by @wnakswl

.container {
    width: 50%;
    height: 0;
    padding-top: 48%;
    position: relative;
}

svg {
    position: absolute;
    top: 0;
    left: 0;
}
content_copyCOPY

https://tympanus.net/codrops/2014/08/19/making-svgs-responsive-with-css/