am not getting the write output . i followed the hints but still am not getting the output
Hi @basilsunnyalukka
Welcome to the FCC forum.
Try to add the same properties and values to the .responsive-img. That should be all there is to do … So the width adapts to the available space and the height gets calculated automatically according to the width.
can you click on the link reset the code and try if you get the output or not
I suggest you reset your code and also maybe try on different browsers.
Tried that, it works for me.
Have you tried a different browser as @passive suggests or cleared your cache?
did the right code still i can move to the next challenge !
@basilsunnyalukka Hey , You have added the attributes required to pass this challenge in the img which is wrong , you have to create a class .responsive-img and add the max-width and height values to it , don’t change the given code.
i didnt modify anything . can you reset the code and run it yourself . i think its an internal error . sorry if i was wrong . thank you BTW
This is what your code should look like from the above snippet which you pinned you have edited the img tag .
<style>
.responsive-img {
max-width:100%;
height:auto;
}
img {
width: 600px;
}
</style>
Please do not create duplicate topics for the same challenge/project question(s). I have merged your topics.