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.

CSS CSS Foundations Backgrounds and Borders Border Radius

Stage 7... Help

Hello everyone,

I'm stuck for the question "Round each corner of the rounded div by 30px". Any Help ?

Hi Alizee,

How to post code

It's faster to post code this way than using screenshots. Also, images have to be uploaded somewhere in order to be posted. They won't work from your desktop.

And for people who still can't quite grasp how to post code (future reference as well), here's a graphic to help with the process.

How to Post Code to the Treehouse Forum

5 Answers

They want you to use the border-radius property.

.rounded {
    border-radius: 30px;

Before we had the border-radius property we had to resort to using images to achieve rounded corners which I think is what you were trying to do here. It's much easier now though.

Hello, Try this

.rounded { border-radius: 30px; }

Thank you guys for the help :)

This is my code :

.rounded { background: url(rounded.png) repeat-y 0 0; width: 30px; }

I had noticed that the div class in the html file was rounded box not rounded. you have write rounded on the div class and then write this code in css .rounded { border-radius:30px; }