I have done this code and it changes the image size on the preview however every time I run the code it says “your image should be 100px wide”. It is 100 px wide though… Also browser zoom is at 100% so that is not the problem either.
<style>
.smaller-image{
width: 100px;
}
</style>
<img class="smaller-image" src="https://bit.ly/fcc-relaxing-cat"
alt="A cute orange cat lying on its back."/>
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.2 Safari/605.1.15
.
Challenge: Size Your Images
Link to the challenge: