Newbee here! Need help passing my "Size your image" CCS code | Easy for you Difficult for me

Hello everyone!

I am starting to learn code this week but get stuck in passing the “Size your image” CCS test. Below is the screenshot:

I can’t pass the below requirements:

  • Your img element should have the class smaller-image
  • Your image should be 100 pixels wide. Browser zoom should be at 100%.

I checked with the engineers I worked with (I am a project manager for technical projects) and they said my code is correct so I am not sure if this is a bug with the system.

I am not sure what I specifically did wrong. Would love to hear feedback from anyone as my teacher here.

Thank you very much in advance!


1 Like

Hi, I just did that challenge the other day. After looking at your code, I noticed that you didn’t match the name of the class EXACTLY to it’s declaration in style sheet. Specifically, you omitted the ‘-’. Without it, you are referring to 2 classes, one named “smaller” and the other “image”. :slight_smile:


Just fixed this!

YUP need to be detail-oriented so bad :slight_smile:

Thank you SO much @islandrob appreciate your help here so I can move on and continue!


I have the same problem. but mine is regarding the pixels. Can anybody help?

Typo in your width. Should be colon :

also check the class names and make sure they are the same… one is ‘imager’

1 Like

perfect way to put it :wink:

it’s easy to miss the details when yer deep in it. Always good to get a second set of eyes on it :smiley:

Thanks guys. I sorted it. You have to pay close attention to the small details.

Thanks for your responses

1 Like