-1

This is the code i have so far but it's not good

<svg
   width="200"
   height="13">
  <g
     id="layer1">
    <text
       style="font-size:13px;font-family:Arial;"
       x="0"
       y="13"
       id="">THIS IS A TEST</text>
  </g>
</svg>

i am trying to get the text to fit perfectly in the box and etc.
also need to add a background color to it.

Venus Rising
  • 53
  • 1
  • 4
  • 1
    I think a good tutorial is what you need, [have a look at this one](https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Getting_Started), the sample used there is actually very close to what you need. – fvu Aug 08 '13 at 01:13
  • I'm not the one who downvoted but it seems there's not enough personal research shown in the question before asking it. Hope this helps – nicholaswmin Aug 09 '13 at 05:17

1 Answers1

2

This can serve:

<svg
baseProfile="full"
width="200"
height="13">
 <g id="layer1">
<rect width="100%" height="100%" fill="red" />
<text
    style="font-size:13px;font-family:Arial;"
    x="0"
    y="13"
    id="">THIS IS A TEST</text>

Pedrão
  • 301
  • 1
  • 8