I've been grappling with the following code snippet. I'm struggling to make my SVG image fit within my container div.
.img {
margin: 0;
padding: 0;
overflow: hidden;
width: 500px;
position: relative;
}
img {
top:0;
left:0;
height:500px;
width:100%;
}
<div class="img">
<img src="https://svgur.com/i/SPb.svg" alt="An svg image">
</div>
Check out my Codepen: https://codepen.io/huyct1996/pen/zYKwXjM
I would really appreciate any assistance. Thank you!