Fit SVG File to DIV

Preset a DIV width = height, then call SVG file to fit into that DIV, and be centered. Uses getBBox() method and Viewbox attribute. It will fill the DIV's width and/or height, maintaining its aspect ratio.
DIV width/height:px.   Load SVG File:
Javascript: