making text flow within a rectangular area in svg
by hrabinowitz
HTML
<svg xmlns="http://www.w3.org/2000/svg">
<g>
<rect x="0" y="0" width="100" height="100" fill="yellow" ></rect>
<text x="0" y="10" font-family="Verdana" font-size="11" fill="blue" > Hello. This is not possible. If you want to display text inside a rect element you should put them both in a group with the text element coming after the rect element ( so it appears on top ). </text>
<textArea x="0" y="22" font-family="Verdana" font-size="11" fill="green" width='100' height='100'> Tomorrow, and tomorrow, and
tomorrow; creeps in this petty pace from day to day, until the last syll­able of recorded
time. And all our yesterdays have lighted fools the way to dusty death.</textArea>
</g>
</svg>