Quote:
Originally Posted by Turtle91
I never thought about that… but it’s so obvious now that you mentioned it… super easy to change, just set the height of the div…
|
That's right!
You are welcome!
EDIT: I use the method of setting the div height (to me, is the best and safest), but you also have the alternative to set the height of the svg wrapper and not setting the div height, for example:
Code:
<div>
<svg xmlns="http://www.w3.org/2000/svg" height="20vh" preserveAspectRatio="xMidYMin meet" version="1.1" viewBox="0 0 xxx xxx" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink">
...
</svg>
</div>