I have a SVG file file.svg
(converted from a pdf) embedded in a DOM object (td element). I want it to stretch to fill the container element. I tried
<td><object data="file.svg" type="image/svg+xml" max-width="100%"></object></td>
which displays it too big (probably the size of the default size of the file), and if I do
<td><object data="file.svg" type="image/svg+xml" width="100%"></object></td>
then it displays too small. What is the correct way to set the size so that it fills up the td element? Will it be easier if I use an external library like raphael.js, or is there a different way of embedding?