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 Style New Pages

I 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
John Hartney
2,893 Points

Hi 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?

I 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

Hi Javid-

If you change the border-radius to 50%, you should achieve circle status.

John Hartney
John Hartney
2,893 Points

Correct Alan however, I believe it won't make any difference as a value above 50% should get the same results

Thanks, John!

John Hartney
John Hartney
2,893 Points

The 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);

Reference

  • JH