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;
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;
Rize is an AI productivity coach that uses time tracking to improve your focus and build better work habits. It is available for macOS and Windows.
With the Slick Media Promo (click promo link bottom right), you can get a 25% discount on your first three months of Rize.
Join in the Discussion