To centre an SVG in a div simply change its default ‘inline’ display to ‘block’ and then give it a margin of auto, so: –
Still not centring, then give your SVG a ‘width’ property e.g. width: 200px;
About the Author
A highly experienced Web Designer / Web Developer (Webflow, WordPress, Weebly & Custom), Front-end / Back-end Developer & New Media Specialist, with extensive knowledge of a wide spectrum of technologies in the Development and Creative Industries, built up over a number of years.