I have a basic inline svg setup
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25.51 25.51">
<rect id="a1" x="0.5" y="0.5" width="25.51" height="25.51"/>
</svg>
In any browser the svg takes the full width, except IE11. The css looks like
svg {
stroke: #000;
stroke-width: 2px;
}
svg rect {
fill: red;
}
I've tried adding width: 100%
and display: block
to the svg but that didn't help. Any suggestion how I can make the svg 100% in width in IE11?