0
Can we insert text inside shapes which are made using svg?
5 Answers
+ 3
group. go to internet and find articles of chris coyer and others. you'll see
+ 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>
+ 1
here <g> for??
0
thank youđ
0
okay