0

Can we insert text inside shapes which are made using svg?

20th Jul 2017, 10:20 AM
Harshu
Harshu - avatar
5 Answers
+ 3
group. go to internet and find articles of chris coyer and others. you'll see
20th Jul 2017, 10:41 AM
Вап
+ 1
for instance: inside rect you should put them both in a group with the text element coming after the rect element (it appears on top) <svg> <g> <rect x="0" y="0" width="100" height="100" fill="pink"></rect> <text x="0" y="50" font-family="Arial" font-size="25" fill="cyan">...some text</text> </g> </svg>
20th Jul 2017, 10:36 AM
Вап
+ 1
here <g> for??
20th Jul 2017, 10:38 AM
Harshu
Harshu - avatar
0
thank you😊
20th Jul 2017, 10:37 AM
Harshu
Harshu - avatar
0
okay
20th Jul 2017, 10:42 AM
Harshu
Harshu - avatar