Tried lots of things on this and cannot get the last test to pass My image on the tribute page is nice and responsive as far as I’m aware but I keep getting the error:
The element should responsively resize, relative to the width of its parent element, without exceeding its original size.
Below that line it suggests "_ Use the “display” style property with a value of “block” forresponsive images.: expected ‘inline’ to equal ‘block’_
When I apply display: block to #img-div nothing happens? If I apply it to #image then I lose my nice and centred layout and still get the error!
The original images width is 625px so I’ve specified max-width: 625px;
You need to assign a max-width: 100% to your image and make sure its parent element has a set width too. For example the container could be 900px, if you set the image inside it to a max width of 100%, it is therefore responsive but cannot flow outside of its container.
please can one help me out
an stock on The <img> element should responsively resize, relative to the width of its parent element, without exceeding its original size.