-
Notifications
You must be signed in to change notification settings - Fork 111
Passing test while image not resizing #500
Comments
Hi @tbushman Thanks for looking into this. Here the image becomes responsive (it resizes when I change the display) and it's centered but I'm not passing the test. I get 9/10, the issue being "The element should responsively resize, relative to the width of its parent element, without exceeding its original size."
If I do that, the image gets aligned to the left and I get 9/10 in the test ("The element should be centered within its parent element."). I tried both options, adding the parameters in and in #main within the img tag but I gget the same result. My text-align: center; is in #main. I look forward to any suggestion. Thanks! |
@matiasmtl remove |
That solved the issue of the image resizing over the original size but the problem then was that it was aligning to the left. I google that and solved it by adding
Now I'm getting 10/10 and the image is centered, resizing but not exceeding the original size. Thank you for your help! |
this configuration work for me : |
Thank you! it worked. |
Issue Description
I completed my Tribute Page project and I'm getting a 10/10 pass on the test. However, the image is not resizing when the display changes.
I tried following the code used in the example (https://codepen.io/freeCodeCamp/full/zNqgVx), with the text-align in the "html,body" and the resize in the img but then my image will be aligned to the left and I won't pass the test.
Browser Information
Your Code / Link to Your Pen
Screenshot
The text was updated successfully, but these errors were encountered: