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 trialBrian Studwell
9,964 PointsCan'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
Vlatko .
2,526 PointsOr simply:
.profile-photo{
display:block;
margin: 0 auto;
margin-bottom:30px;
max-width:150px;
border-radius: 100%;
}
Christian Frick
14,586 PointsHi 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%;
}