Try CSS:
#svgMain {margin-left:auto; margin-right:auto; display:block;}
More Related Contents:
- How to draw human body in html5 svg and roate it in 360degree [closed]
- Fill SVG path element with a background-image
- How to modify the fill color of an SVG image when being served as background image?
- SVG drop shadow using css3
- How to apply a style to an embedded SVG?
- SVGs not scaling properly in IE – has extra space
- Add a background image (.png) to a SVG circle shape
- html/css hexagon with image inside
- make an html svg object also a clickable link
- Using base tag on a page that contains SVG marker elements fails to render marker
- How do I scale a stubborn SVG embedded with the tag?
- Linking to CSS in an SVG embedded by an IMG tag
- Creating a ‘New’ spiky label with 24 or above point burst
- Extracting SVG from Font Awesome
- How to cut a circular part from an image?
- Method to convert HTML5 canvas to SVG?
- SVG image inside circle
- Draw double curved item with beveled edges
- How to get ScrollBars in SVG?
- div with triangle at the bottom with background image
- How do I create a teardrop in HTML?
- Favicon Standard – 2023 – svg, ico, png and dimensions? [duplicate]
- How to render svg elements with crisp edges while still keeping anti-aliasing?
- How to display multiple lines of text in SVG?
- How to curve the div from bottom with image background
- Fast and responsive interactive charts/graphs: SVG, Canvas, other?
- Emulate IE7 for IE8 but not for IE9 using “X-UA-Compatible”
- SVG coordinates with transform matrix
- Scale SVG to container without mask/crop
- Does svg xmlns attribute value requires protocol? Can it be https or relative?