I've got a inline svg inside a DIV. How do I make the svg grow/shrink according to the width of its parent div?
It doesn't work in IE but works in chrome. When I used developer tools in chrome I noticed this:
I've read that setAttribute() method can be used to adjust svg's viewBox?
How can I fix this to work in IE?
<div class="mainGA mainG">
<div class ="drgAM">
<svg viewBox="0 0 210 500"><polygon points="100,10 40,198 190,78 10,78 160,198"
style="fill:cyan;stroke:yellow;stroke-width:5;fill-rule:nonzero;" /></svg>
</div>
</div>