Tribute Page Project User Story #8

Hi Everyone
Struggling with User Story #8: The img element should responsively resize, relative to the width of its parent element, without exceeding its original size.

I’ve added the following CSS code:

#image {
  max-width: 100%;
  height: auto;

But I still am not passing?
Did I get it wrong?

It would help if you provide a link to your codepen.

1 Like

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

1 Like

Here it is:

You need to read the FULL error message because it will tell you how to fix it.

1 Like

brilliant, thank you @jwilkins.oboe :slight_smile:

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