Border radius

noun

say it: “BOR-der RAY-dee-us” /ˈbɔrdər ˈreɪdiəs/

The CSS property that rounds an element's corners. A bigger value gives rounder corners, and 50% on a square turns it into a circle.

What does border-radius do?

border-radius rounds an element's corners. 50% on a square makes a circle.

.button { border-radius: 8px; }
.avatar { border-radius: 50%; }   /* a circle */

In a sentence

  • “I added a border radius of 12px so the buttons looked soft instead of sharp.”

Level: Apprentice · More CSS terms at this level

Updated