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 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; }