css svg width and height code example
Example: css svg width 100%
<svg height="100%" width="100%" viewBox="0 0 100 100" preserveAspectRatio="none">
<path d="M0 0 L100 0 L50 100 Z" />
</svg>
<svg height="100%" width="100%" viewBox="0 0 100 100" preserveAspectRatio="none">
<path d="M0 0 L100 0 L50 100 Z" />
</svg>