HTML table in SVG

Asked

Viewed 161 times

2

It will be possible to create an HTML table inside the tag <svg>? I have an example, but I can’t see the objects.

Example: http://jsfiddle.net/XmC2A/18/


1 answer

2

tries to include the code in the tag foreinObject

<foreignobject x="10" y="10" width="800" height="500" >
  <table border=1><tr> 
    <td> Olá mundo </td>    
    <td> <svg width="400" height="450">
            <rect id="rect1" width="300px" height="400px" fill="blue" />
        </svg> </td>
      </tr>
  </table>
</foreignobject>
  • Yes is what I have in my example. The table appears, but not the svg objects within it.

  • 1

    svg + html + svg was not clearly stated in the statement... (I edited based on your remote example -- see if it makes sense)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.