Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML How to Make a Website Adding Pages to a Website Style New Pages

How can I round the corners of my profile photo?

I have this in my about.html file

<section> <img src="Img/me.jpg" alt="Photograph of Rishi Shah" class:"profile-photo"> <h3>About</h3> <p>Hi, I'm Rishi Shah. This is my design portfolio where I share all of my favorite work. When I'm not designing things, I enjoy exercising, reading, drinking excellent coffee, and more.</p> <p>If you'd like to follow me on twitter, my username is <a href="http://www.twitter.com/rkshah09">@rkshah09</a>.</p> </section>

I have this in my main.css file

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

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

Hi Rishi,

Your html has been stripped out. Here's a thread on how to post code in the forums: https://teamtreehouse.com/forum/posting-code-to-the-forum

Do you see the other styles applied but not the border-radius?

2 Answers

you can increase or decrease the border-radius value. if it is 100%, the result is a full circle, if you only want the corners to be round decrease the value (like 70% or less) and see the effect.

Hi all,

I solved my own question. I was writing my class as "class:profile-photo" when it should have been "class=profile-photo"

Thanks for the help!