Solution to "Make an Image Responsive " does not work

Hi, I’m new around here
I am trying to follow the course of “Responsive Web Design Principes”
and i’m stuck in exercise “Make an Image Responsive”
and the solution provided (freeCodeCamp Challenge Guide: Make an Image Responsive) did not work for me
I can’t reply that message and so I open this topic.
I think my code should work but it doesn’t


Please, can someone help me?

3 Likes

Maybe you paste your code.
See the result from other people.

Thanks for answering
The code works in the preview but the system reports this error when" Run the Tests "is applied to it:

“// running tests
Your responsive-img class should have a max-width set to 100%.
// tests completed”

Could someone test the solution on their computer to rule it out as a system checking problem?

1 Like

That’s why you need paste your original code.
If other people paste and pass the test, then is not your fault.

Hi. You could check this and answers below:

1 Like

Thanks for answering @camperextraordinaire
The updated solution doesn’t work either
I have seen the answer of @napolimatiase in the post About responsive image ,
I have tried it and it works
So the solution works only in Crome, it does not work in Edge nor in Firefox.
That is so at least in my case, it would be good to report this peculiarity in the solution.

1 Like

I’m having the same problem. Hopefully it gets resolved soon

Hi ,
This is my first time posting on here so I hope I’m doing it right. I found that the code will be accepted if you use your iPhone (Safari). I just logged in and completed the challenge (I don’t know if it makes a difference but I clicked submit and move on to the next challenge) and then refreshed my /learn page back on my laptop and it updated my progress.
I hope this helps someone because as a completionist I found it very frustrating. :slight_smile:

1 Like

This challenge is working in chrome browser but not in edge . So u should try in chrome browser…

1 Like

I’m having the same problem in Edge.

1 Like

Did not work for me in Chrome. I was using Edge too and it did not work there either.

Thank you ! That does indeed work on Safari ! Could complete it there :slight_smile: