Got puzzled!!! Anyone who can help me??๐Ÿ‘‡๐Ÿ‘‡ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Got puzzled!!! Anyone who can help me??๐Ÿ‘‡๐Ÿ‘‡

It's kinda weird! The width and the height of SVG are defined as 2000 & 2000, but the width and height of rectangle are defined as 300 and 100!! Now I'm experiencing some difficulties๐Ÿ˜“๐Ÿ˜“๐Ÿ˜“๐Ÿ˜“

11th Jul 2019, 3:20 AM
Seyed Amirhossein Borhani
5 Answers
+ 1
The answer is obvious now... The size of svg should be bigger than anything being contained by it...
13th Jul 2019, 7:18 PM
Seyed Amirhossein Borhani
0
please post the code so that we can see what you are talking about
11th Jul 2019, 8:00 AM
Jason Kennedy
0
Here bro๐Ÿ‘‡๐Ÿ‘‡ <svg width="2000" height="2000"> <rect width="300" height="100" x="20" y="20" fill="green" /> </svg>
11th Jul 2019, 12:47 PM
Seyed Amirhossein Borhani
0
The address of the code๐Ÿ‘‰๐Ÿ‘‰HTML, HTML5 section,lesson12
11th Jul 2019, 12:48 PM
Seyed Amirhossein Borhani
0
And thank you for answering๐Ÿ˜’๐Ÿ˜’๐Ÿ˜’๐Ÿ˜’
13th Jul 2019, 7:16 PM
Seyed Amirhossein Borhani