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!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Respostas
+ 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
9th Apr 2020, 5:19 PM
Bahhaāµ£
Bahhaāµ£ - avatar
0
So the svg covers that red border, yeah?
9th Apr 2020, 5:22 PM
Treasure Ihedigbo
Treasure Ihedigbo - avatar