How does the svg 'height' and 'width' affect your work/drawings | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How does the svg 'height' and 'width' affect your work/drawings

What does the svg 'height' and 'width' attribute actually do. Shouldn't the radius of the circle determine the height and width when creating circles. I'm confused

2nd Oct 2018, 9:12 AM
Waldo
Waldo - avatar
2 Answers
+ 3
The svg "width" and "height" attributes defines the dimensions of the region for use in your svg drawings. The circle is standalone inside it. You can learn more about it here: https://code.sololearn.com/Wnc1H3jaH0ua/?ref=app
2nd Oct 2018, 9:56 AM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
+ 1
Thank you for the answer
3rd Oct 2018, 2:14 AM
Waldo
Waldo - avatar