Need help with a test case on tribute page

here is my project link to tribute page
I am having trouble with one test case - element should responsively resize.
I had passed all the test cases earlier, then I started to style my project and could not pass this test anymore. I tried using media queries, set height margin to auto but nothing worked. I could not figure the reason. Please help

Hi @chichkenmomos !

You have two image selectors in your css.
You just need one.

#image {
  width: 35rem;
  height: 28.5rem;
  padding: 22px;

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

But also, you should get rid of those style tags in your html and move that css over to the css section.

Hope that helps!

Hey! Yeah I had figured that out while taking a walk. Lol. I passed all the test cases this time! Thanks for your advice.

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