Responsive Web Design Principles - Make an Image Responsive

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**
<style>
.responsive-img {
img{
max-width:100%;
height:auto;
}

}

img {
width: 600px;
}
</style>

<img class="responsive-img" src="https://s3.amazonaws.com/freecodecamp/FCCStickerPack.jpg" alt="freeCodeCamp stickers set">
<img src="https://s3.amazonaws.com/freecodecamp/FCCStickerPack.jpg" alt="freeCodeCamp stickers set">
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36

Challenge: Responsive Web Design Principles - Make an Image Responsive

Link to the challenge:

you can’t nest selectors

Thanks for the info. I figured out the mistake.

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