New! My 44-page ebook "CSS in 44 minutes" is out! 😃

Get it now →


Defines the radius of the top right corner.

default border-top-right-radius: 0;

Removes any border radius.

border-top-right-radius: 20px;

You can use pixel values.

border-top-right-radius: 50%;

You can use percentage values. In this example, the radius starts halfway on the top border, and ends halfway on the right border.

border-top-right-radius: 20px 50%;

If you set two values, the first one is for the top border, the second one for the right border.