0

Two Shape Elements together

if I put together two shape elements I can only see the firs one, why? <svg width="2000" height="2000"> <circle cx="80" cy="80" r="50" fill="green" /> </svg> <svg width="2000" height="2000"> <rect width="300" height="100" x="20" y="20" fill="green"/> </svg>

20th Nov 2020, 9:16 AM
Anna Accensi
3 odpowiedzi
0
Anna Accensi It is because your working area is too big, but if you scrolled down you could see your green rectangle. Or use this * i edited your code a little bit* <svg width="200" height="200"> <circle cx="80" cy="80" r="50" fill="green" /> </svg> <svg width="400" height="200"> <rect width="300" height="100" x="20" y="20" fill="green"/> </svg>
20th Nov 2020, 9:23 AM
E1ias
E1ias - avatar
0
I just have found that all the shapes are there but with a big separation between them. Can I make the separation shorter?
20th Nov 2020, 9:46 AM
Anna Accensi
0
Anna Accensi Yes you can and that is what i said before. In order to do that you have to decrease the height of the SVG. If you need to, you can refer to the code that i gave you earlier
20th Nov 2020, 10:01 AM
E1ias
E1ias - avatar