The problem is that the code seems not to be working without the tag, the image just disappear. Then if I just add it, the image isn’t responsive at all
Link to the challenge:
The problem is that the code seems not to be working without the tag, the image just disappear. Then if I just add it, the image isn’t responsive at all
Link to the challenge:
Is not working at all
Do you see the image on the page? I do. You have to use CSS to make it responsive.
Yes, I mean, the image is there and the css is right but if you resize the viewport the image do not. I’ve been looking for solutions but nothing works at the moment, try yourself, remove the <figure>
tag and the image will disappear, add it again and it wont resize
under your image tag I deleted everything and added
max-width: 100%;
display: block;
and I think it worked
Yes, it did. And discovered that another solution is to give the parent (#img-div
) a size with relative units:
#img-div{
margin:auto;
padding-left:30px;
padding-right:20px;
width:20vw;
height:auto;
}
#image{
width:100%;
height:auto;
}
Thanks guys
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.