If svg has height and width attributes, why does the shape(circle, rectangle) also have height and width attributes too?. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

If svg has height and width attributes, why does the shape(circle, rectangle) also have height and width attributes too?.

9th Apr 2020, 5:04 PM
Treasure Ihedigbo
Treasure Ihedigbo - avatar
4 Answers
+ 1
yes, and blue is the shape. play with those values to understand better.
9th Apr 2020, 5:24 PM
Bahhaⵣ
Bahhaⵣ - avatar
0
think of SVG as the canvas where you want to draw shapes. shapes can be of different sizes and forms. the width and height of shapes control their size and form.
9th Apr 2020, 5:14 PM
Bahhaⵣ
Bahhaⵣ - avatar
0
So the svg covers that red border, yeah?
9th Apr 2020, 5:22 PM
Treasure Ihedigbo
Treasure Ihedigbo - avatar