Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS How to Make a Website Adding Pages to a Website Make an About Page

Nilaginy Sivatheesan
Nilaginy Sivatheesan
445 Points

One of the questions says to give an image a maximum width of 150px and it says my code is wrong?

This is the code that I used:

img { max-width: 150px; }

but it keeps saying my answer is wrong.

It looks right at first glance. Are they supplying any details in the error message? Could you post your code?

1 Answer

so there could be a few reasons why its not working. however with out your code im just going to guess what is going on to try and help. the first thing i would try is making sure that you are also putting in the border-radius that it is also asking for. if that does not do it then it might be that you need to use the class selector instead of img. class selectors are writing with a dot. for example .profile-image {}. and all the code for this test should go inside the brackets. hope this helps and if it does not do the trick post your code and we can try and figure it out.