View Single Post
Old 05-02-2025, 12:03 PM   #21
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,852
Karma: 8821117
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Turtle91 View Post


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!


Quote:
Thanks!
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>

Last edited by RbnJrg; 05-02-2025 at 12:35 PM.
RbnJrg is online now   Reply With Quote