+ 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.

7th Mar 2019, 1:15 PM
Muhammad Zain Ul Abidin Khan
Muhammad Zain Ul Abidin Khan - avatar
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>
7th Mar 2019, 1:31 PM
Bright Obeng
Bright Obeng - avatar
+ 2
Wlcm
8th Mar 2019, 9:57 AM
Bright Obeng
Bright Obeng - avatar
+ 1
Thanks bright it worked.
8th Mar 2019, 9:57 AM
Muhammad Zain Ul Abidin Khan
Muhammad Zain Ul Abidin Khan - avatar