+ 1

How can i add height to these recatangle? It doesn't expand more than 100.

<svg height="100%" width="100%"> <rect height="100" width="100" x="100" y="100" fill="red"> <animate attributeName="" from="0" to="100%" dur="1s" repeatcount=""/> </rect> <circle width="100" height="100" cx="100" cy="120" r="30"></circle> </svg>

29th Sep 2021, 7:59 AM
Samuele Nega
Samuele Nega - avatar
3 Answers
+ 2
height = "200" width = "200"
29th Sep 2021, 8:08 AM
Simba
Simba - avatar
+ 2
It's because of html margin, so svg can't have height: 100% To fix it just add: html, body, svg { height:100%; width: 100%; margin: 0; } To the CSS file or write it manually in each of the tags in html.
29th Sep 2021, 8:20 AM
Aleksei Radchenkov
Aleksei Radchenkov - avatar
0
Thank you 🙏🙏🙏 but until now i didn't get the right one. Please make fit the given circle bottom to top not the overall html or another
29th Sep 2021, 9:22 AM
Samuele Nega
Samuele Nega - avatar