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.
2 Respostas
+ 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 😊
+ 1
Can't you use x and y attributes?