Making sizing responsive and inherited from container element. HTML CSS & JS
Paultheriault (12)

I am stuck on this last point. Can someone have a look and give me a hint.
1. The <img> element should responsively resize, relative to the width of its parent element, without exceeding its original size.

You are viewing a single comment. View All
malvoliothegood (746)

There are quite a few errors in your CSS file. For example you have misplaced semi-colons main {;. Your HTML tags are messed up as well. Look at this repl. I think it does what you want and I have commented the CSS: