Responsively resize the element

https://codepen.io/doubleagentblue/pen/joqPgx

1. The element should responsively resize, relative to the width of its parent element, without exceeding its original size.

Can’t figure out number 10.

welcome to the community !!

I noticed that you have added inline css on image tag first you need to remove that
style="height:350px; width:500px;"
then
you need to change the height ,width,max-height and width

max-width: 100%;
max-height:100%;  
display: block;
height: auto;
width: auto;
2 Likes

Wow, thank you! It worked.

1 Like