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

My image in the about section is still square shaped. How can I make it circular in the Style New Page video?

Here is my code:

/******************* PAGE: ABOUT *******************/

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

Mind providing the HTML as well? Your code seems that it should render correctly.

3 Answers

Hi Ayaz,

Can you include the code for your image? or fork your workspace and link it here? This would make it easier to help you.

add a border to it

.profile-photo { display: block; max-width: 150px; margin: 0 auto 30px; border-radius: 100%;  border: 4px solid #000;}

I figured out why my code didn't work Kofi, Mark, and Josh. I forgot to put the dash in the hyphenated word profile-photo in the HTML code. Here's how it looks like now:

<div id="wrapper"> <section> <img src="img/nick.jpg" alt="Photograph of Nick Pettit" class="profile-photo">

Great Ayaz! I had a feeling it was an error in the HTML as your CSS appeared to render correctly when I tested it.