Give the SVG element a viewBox attribute that indicates the content to display:
<svg … viewBox="0 200 500 100">
It basically says: "the content of this image is 500 units wide and 100 units high and starts at 0x, 200y, please be sure to save it"
In action:
Learn more about the preserveAspectRatio attribute for more information on how to further control the cropping, scaling, and alignment of your image when the aspect ratio specified in CSS does not match the aspect ratio of your viewBox.
source share