I am making an svg (a line element) and it's vertical. I want that svg line to scale according to the height of the container.
<div class="parent">
<svg viewBox="0 0 100 100">
<line x1="0" y1="0" x2="0" y2="20" style="stroke: black;stroke-width:1"/>
</svg>
</div>
Now if increase parent width the height of vertical line scales, but the requirement is, as we increase the height, length should increase proportionally.
Am i putting the viewBox wrong?