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;
The next evolution of team productivity and collaboration is here. Unlock the next generation of productivity with the infinite possibilities of ClickUp 3.0.
Be more productive with apps, tidy tabs, multi-account sign-in, unified search, flexible workspaces, and more...
Get 35% OFF with the Slick Media Wavebox Promo Code (click promo link bottom-right)
Loom is the fastest way to record quick videos of your screen. It's easy to use and perfect for hybrid workplaces. FREE & affordable paid plans.
BEE FREE and create gorgeous, responsive emails in minutes. BEE PRO and design emails & landing pages really fast. No Code required!
1Password is the easiest way to store and share logins, strong passwords, credit cards and more. With 1Password, you need to memorise one password!
Join in the Discussion