I am new to HTML and CSS. Well I have been able to complete all the tasks except with the one where I don’t have any idea to resize the size of the image respectively to width of the parent element without exceeding the original size.
Hello
First you need to change your “#img” to “#image” as you set its id to that, then you set a width of 100% for it and max-width of your choice.
Then set a display to “#img-div”, for example flex, then flex-direction to column, and align-items to center.