SVG Circle creation | Sololearn: Learn to code for FREE!

+1

SVG Circle creation

Why we need to define width if it don´t influence to circle appierence? <svg width="2000" height="2000"> <circle cx="80" cy="80" r="50" fill="green" /> </svg>

11/12/2020 9:41:26 AM

Victoria Dushina

1 Answer

New Answer

+3

Its the width of the svg container not the circle Svg container is container allow you to draw svg graphics If you reduced that with The elements bigger than that width get overflow out of container Eg : As you set width and height 2000px if you draw a circle of radius 2000px half of circle get overflow and can't be visible.