Here is the issue: " The element should responsively resize, relative to the width of its parent element, without exceeding its original size."
I have read all the questions and answers here about the same issue a lot of people have had and unfortunately all changes that I have made haven’t solved it.
Any tips would be welcome.
I think that something should be changed at the level of the ID img but also at the level of its parent container. After changing almost everything I feel a bit lost and resourceless…
Thank you for any kinds of support you will bring.
Hello @edj1040. When a test fails you can click on the red button to see what the test was looking for and how to fix it.
With this particular test, when you implement the first fix and run the test it may fail again but for a different reason. Implement the fix and test again.
Hello Roma, thank you for your answer and the tips. The issue is repeating and is about the responsiveness of the image. I keep searching for a solution. I reviewed the lesson as well. For the style I did it internally indeed and will take care in the future to prefer the external way. Kind regards. Etienne
Hello hlcostard, thank you for taking the time to reply. I have fixed what you had pointed out. Thank you for the check you did. Probably again a wrong copy-paste … For the issue itself about responsiveness of the image I keep getting the message from the Codepen tool and will still try to find a solution. Kind regards, Etienne
Troubleshooting is easier when you have external CSS which is why I suggested it.
In HTML you use <!-- to start a comment and --> to end a comment.
In CSS you use /* to start a comment and */ to end a comment.
Look at your comments in the style element and notice that they are not commented correctly.
Side note; don’t use the <br> element to force line breaks or spacing. That’s what CSS is for.
Hello again. I followed your advice to separate html and css. Then I reviewed the comments which were as you said wrongly set here and there. Finally I only had to set a display: block; in the image div. And I was really happy to get the score of 10/10. I would like to thank you again for your advices and suggestions that I will follow as from now. Have a nice day/evening. Best regards. Etienne