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;
Sell on Amazon with Jungle Scout, the #1 trusted solution for building and managing your Amazon business. Jungle Scout is used by 9 out of 10 top Amazon sellers, and overall, 1 million sellers, retailers, and global brands use Jungle Scout daily to win on Amazon.
Instantly save up to 50% on Jungle Scout subscriptions by clicking the link.
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