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 trialC Clemens
3,381 PointsBorder-radius quiz question #2 answer?
I tried specifying one value thinking that would cover each corner. I am not getting this one.
7 Answers
Elliott Mangham
13,086 PointsHi!
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!
Elliott Mangham
13,086 PointsC Clemens, the first code I provided is the correct answer for the second question too.
Kind regards.
Elliott Mangham
13,086 PointsC Clemens the two units are the "20px" and the "5px", as opposed two four separate rules.
Elliott Mangham
13,086 PointsHaha, no problem. Please do vote "Best Answer" if my support was helpful.
Cheers!
C Clemens
3,381 PointsThank 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
3,381 PointsThank 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
3,381 PointsOh.... I thought it was asking me to set the value itself to 2 units. ha ha.
Thanks.
Christine