Hy i have following svg:
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 200" width="100" height="200" >
<g>
<rect style="fill:#000000;" id="spinner" width="100" height="200"/>
<circle style="fill:#ffff00;" cx="20" cy="20" r="10"/>
<circle style="fill:#ffff00;" cx="80" cy="20" r="10"/>
<text text-anchor="middle" x="50" y="180" fill="white">Stau 800m</text>
</g>
I set with and height to 100% in a stylesheet:
svg{width:100%; height:100%}
If i display the svg in browser the svg is scaled to the size of the browser. After that i want to rotate the svg. so i adapted the stylesheet.
svg{width:100%; height:100%; transform: rotate(90deg);}
The svg is then rotated but it is not scaled correctly:
As you can see in the picture there is a blank space on the top and on the bottom. The svg does not use the full size of the browser window.
Can you help me? What do i wrong?
