I need help of question 9 tribute page

please can someone help me with question 9 as my tribute page is not pass on that question. I have attached my tribute page link

Using width: 100% it’s okey.

However, the exercise wants the img to be related to his parent element, so you have to use max-width in this case.

Max-width is a good property to make a page responsive, as you change the window size the img would never be larger than the property value. It’s better used with pixels.

Anyway, another question is that the img should be centered.

Try this and look what happens as you resize the window:

img {
  max-width: 600px;
  height: auto;
  display: block;
  margin: auto;

thanks you are a star. It works problem solved

1 Like

@odaniboy, I see someone has given you the answer but in the future if a test fails click the red button to see which test(s) are failing and text to help you correct the issue.
Be sure and read more than just the first line of the failing message. The ability to read and comprehend error messages is a skill you’ll need to acquire as a developer. Ask questions on what you don’t understand.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.