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 trialJacob Thomson
757 PointsWhy is my photo more pear shaped then circle?
when i applied the code:
.profile-photo {
display: block;
max-width: 150px;
margin: 0 auto 30px;
border-radius: 100%;
My photo did not come out as a circle.. it was pear shaped. Is that because my personal photo dimensions are different to Nicks? If so, what is the best suited dimensions? As mine are currently w=1024 h=768
4 Answers
Ana Gledovic
7,465 PointsHey Jacob, that is correct. That is because of dimensions of your photo. If you want your photo to be a perfect circle, it should have the same width and height.
James Barnett
39,199 PointsIs that because my personal photo dimensions are different to Nicks?
Yes
If so, what is the best suited dimensions?
Use a picture that is a square instead of a rectangle
Jacob Thomson
757 PointsThanks for your help James Barnett
Gloria Dwomoh
13,116 PointsI think your picture is larger than his. Try to download his project file and check for the image size. He also says the sizes of his images at some point in the course but I don't remember the exact spot. I hope this helps.
John Donnell
7,801 PointsNick's image was 512 x 512
Gloria Dwomoh
13,116 PointsThanks John :) Yeah I kind of remember it was along those lines, definitely smaller and squared up.
Jacob Thomson
757 PointsGreat, got it! Thanks! Ana Gledovic, Gloria, John Donnell
Gloria Dwomoh
13,116 PointsYou are welcome :)