tefanga
February 19, 2019, 5:37am
1
I’m getting the error:
The element should responsively resize, relative to the width of its parent element, without exceeding its original size.
I tried everything I know so far and can’t solve it.
I passed all the tests except for this one…
Any ideas?
Thanks
This is the page so far (I can’t post link, so this is The link…):
codepen . io / tefanga / pen / RvvQMB
You posted a blank template project
tefanga
February 19, 2019, 4:17pm
3
Hey, Fixed ! Link updated, any clues? Thanks
lasjorg
February 19, 2019, 4:20pm
4
Apply the CSS to the image instead of the container.
#img-div > img {
display: block;
width: 100%;
max-width: 100%;
height: auto;
}
Edit: Don’t just copy the example project for your own project, make something new. It is OK to test with it just don’t make that your finished project.
3 Likes