views:

135

answers:

1

This is likely a very simple question, but how do I get text in SVG to stretch to fit its container?

I don't care if it looks ugly from being stretched too long or high, but it needs to fits its container and be as big as possible.

Thanks

+1  A: 

The viewbox attribute is what you need.

msw
sweet, works perfectly! I bit confusing at first though
Tom
w3 standards are supposed to be confusing ;)
msw