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

HTML Introduction to HTML and CSS (2016) Adding a New Web Page Write the CSS

I'm having trouble changing the image to round using border-radius: 50%; is my code wrong?

(My Resume.html text)

<img src="https://placeimg.com/200/200/tech" alt="Benji Beck, Web Developer" class="main-img">

(My Resume.css text)

.main-image { border: solid 4px black; border-radius: 50%; }

Reid Everett
Reid Everett
14,009 Points

Try using pixels instead of percentages and see what happens.

2 Answers

Estelito Calayag Jr.
Estelito Calayag Jr.
5,818 Points

<img src="https://placeimg.com/200/200/tech" alt="Benji Beck, Web Developer" class="main-img"> class should be "main-image" not "main-img" <img src="https://placeimg.com/200/200/tech" alt="Benji Beck, Web Developer" class="main-image">

Good looking out Estelito, I just made them both into "main-img" by error and can now correct them following your suggestion to "main-image". Thank you!

Thanks Reid for your help with this.

Tinkered again and also noticed that I wrote "main-img" in resume.html but "main-image" in my resume.css. I think the page looks a little better now.