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 Basics (2014) Enhancing the Design With CSS Border Radius

William Richert
William Richert
6,418 Points

I don't understand the question.

I do not understand the following code challenge question: "Use the shorthand notation to shorten the border-radius value down to two units."

What units? pixels?

1 Answer

Elisabethann Bennett
Elisabethann Bennett
8,186 Points

The shorthand notation is when you take all four of the border-radius values and condense them down to one. For instance, instead of having: border-top-left-radius: 10px; border-top-right-radius: 15px; border-bottom-right-radius: 10px; border-bottom-left-radius: 15px;

you can instead shorten that to just one border-radius value, as such: border-radius: 10px 15px 10px 15px;

to condense it even further, you'd simply go: border-radius: 10px 15px;

This will make your top-left and bottom-right the same value and the top-right and bottom-left the same value.