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 trialJavid Beykzadeh
5,863 PointsI cannot figure out why my profile picture
does not display as a circle on the about.html page.
<div id="wrapper"> <section> <img src="img/nick.jpg" alt="Photograph of Nick Pettit" class"profile-photo"> <h3>About</h3>
/********************** PAGE: ABOUT ***********************/
.profile-photo { display: block; max-width: 150px; margin: 0 auto 30px; border-radius: 100%;
}
2 Answers
John Hartney
2,893 PointsHi Javid,
The only difference I see in your code is max-width: 150; instead of 200
.profile-photo {
display: block;
max-width: 200px;
margin: 0 auto 30px;
border-radius: 100%;
}
Ow.. Just noticed this in your html
class"profile-photo
missing the equals after class?
It should be
class="profile-photo"
I love an ease one ; )
Hope this helps?
Alan Dubinsky
1,286 PointsHi Javid-
If you change the border-radius to 50%, you should achieve circle status.
John Hartney
2,893 PointsCorrect Alan however, I believe it won't make any difference as a value above 50% should get the same results
Alan Dubinsky
1,286 PointsThanks, John!
John Hartney
2,893 PointsThe pleasure is mine Alan,
Here's some css love you might add the border...
box-shadow: 0 0 8px rgba(0, 0, 0, .8);
-webkit-box-shadow: 0 0 8px rgba(0, 0, 0, .8);
-moz-box-shadow: 0 0 8px rgba(0, 0, 0, .8);
- JH
Javid Beykzadeh
5,863 PointsJavid Beykzadeh
5,863 PointsI am following the directions per this video and not getting same results.
http://teamtreehouse.com/library/how-to-make-a-website/adding-pages-to-a-website/style-new-pages