Codepen tests 8/10

so i have my tribute page and everything is working except for these 2 tests about the img-div element that i can not seem to pass. ive tried for a while and have also tried asking other people on stack overflow what the issue seems to be but they all say its fine. ive made it look almost exactly like the one on the example even going as far as to literally put the example in to see if it would work but it still doesnt. here is my codepen:


Note: right below run test is a red test passed button
click on that and it’ll tell you errors

here’re the errors →

  1. The element should responsively resize, relative to the width of its parent element, without exceeding its original size.

    • Use the “height” style property with a value of “auto” for responsive images.: expected ‘150px’ to equal ‘auto’
  2. The element should be centered within its parent element.

    • Image is not centered: expected 705.2666625976562 to be close to 13.73333740234375

i dont quite understand; you say its good but the tests say otherwise

yes, i’ll take that back.

nevermind, we got it fixed and it now says 10 10, thanks :slight_smile:

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