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

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

Can't get past challenge 5 of this question.

I've been asked to give the image a max-width of 150px and a border-radius of 100%. Where am I going wrong? My code is:

img{
display: block;
margin: 0 auto 30px auto;
max-width: 150px;
border-radius: 100%;
}

2 Answers

Or simply:

.profile-photo{
  display:block;
  margin: 0 auto;
  margin-bottom:30px;
  max-width:150px;
  border-radius: 100%;
}
Christian Frick
Christian Frick
14,586 Points

Hi Brian

You forgot the class of the img.

My solutions looks like:

img.profile-photo{
  display:block;
  margin: 0 auto;
  margin-bottom:30px;
  max-width:150px;
  border-radius: 100%;
}