How to constrain svg width / height in pygal
2 answers
You can use a div for this ....
In the code, enter the following:
<div class="parent">
<img src="http://localhost/images/Store.Diapers.svg">
</div>
And put this in your .css file
.imagebox {
width: 42px; /*This is the height of the div class it self */
height: 42px;
}
/* This changes the height of any image with the <img> tag within the div class*/
.imagebox img {
height: 800px;
width: 600px;
}
+1
source to share