+ 1
How to insert text in svg elements?
Is there some possibility to place text inside svg shapes like circle, ellipse etc. If there is any please comment.
3 odpowiedzi
+ 4
Yh
svg height="350" width="350"> <circle cx="110" cy="110" r="100" stroke="red" stroke-width="3" fill="none" /> <text x="110" y="110" text-anchor="middle" stroke="red" stroke-width="1px" > Label </text> <circle cx="240" cy="110" r="100" stroke="blue" stroke-width="3" fill="none" /> <text x="240" y="110" text-anchor="middle" stroke="blue" stroke-width="1px" > Ticket </text> <circle cx="170" cy="240" r="100" stroke="green" stroke-width="3" fill="none" /> <text x="170" y="240" text-anchor="middle" stroke="green" stroke-width="1px" > Vecto </text> </svg>
+ 2
Wlcm
+ 1
Thanks bright it worked.