0

How do you shift a polygon to the position you want?

So basically,I"m drawing the Ghana flag which is a rectangle divided into three,making it three rectangles with a star in the middle rectangle.So I have been able to draw the star but I can't push it to the middle.

10th Jul 2019, 10:59 AM
JoeyGH
JoeyGH - avatar
2 ответов
+ 4
JoeyGH Use transform:translate(); in css. https://css-tricks.com/almanac/properties/t/transform/ It works for sure. If you fill any problems please ask and post link of your code so we can help better way. Thank you. Seb TheS friend polygon in svg don't use single pair of x and y attributes it has many x and y coordinates as value of 'points' attribute. so it's not possible that way 😊
10th Jul 2019, 11:42 AM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar
+ 1
Can't you use x and y attributes?
10th Jul 2019, 11:24 AM
Seb TheS
Seb TheS - avatar