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

C Clemens
C Clemens
3,381 Points

Border-radius quiz question #2 answer?

I tried specifying one value thinking that would cover each corner. I am not getting this one.

7 Answers

Hi!

You answer will look like this:

.wildlife {
  border-radius: --;
}

The "20px" targets top left and bottom right, and the "5px" will target top right and bottom left.

If you was to do it the long way, it would look like this:

.wildlife {
  border-top-left-radius: --
  border-top-right-radius: --;
  border-bottom-left-radius: --;
  border-bottom-right-radius: --;
}

Hope this helps!

C Clemens, the first code I provided is the correct answer for the second question too.

Kind regards.

C Clemens the two units are the "20px" and the "5px", as opposed two four separate rules.

Haha, no problem. Please do vote "Best Answer" if my support was helpful.

Cheers!

C Clemens
C Clemens
3,381 Points

Thank you for your reply. I got that one but my answer to the second question did not pass. I thought I could just give one value since all corners would be the same. I don't think I understand the question.

C Clemens
C Clemens
3,381 Points

Thank you. I know I am being dense here but why does that work for this question?

"Finally, use the shorthand notation to shorten the border-radius value down to two units."

Thank you for your time.

C Clemens
C Clemens
3,381 Points

Oh.... I thought it was asking me to set the value itself to 2 units. ha ha.

Thanks.

Christine