Border Radius Syntax
The CSS border-radius property uses shorthand notation. One value applies to all corners. Two values set top-left/bottom-right and top-right/bottom-left pairs. Three values set top-left, top-right/bottom-left, and bottom-right. Four values set each corner clockwise from top-left.
Creating Circles and Ellipses
A perfect circle requires border-radius: 50% on an element with equal width and height. For elliptical shapes, use the slash notation: border-radius: 50% / 25% creates a horizontal ellipse. This advanced syntax lets you define horizontal and vertical radii separately for creative shapes.
Rounded Corners in Design Systems
Design systems typically define a scale of border-radius tokens from none (0) to full (9999px). Common scales include sm (4px), md (8px), lg (16px), xl (24px), and full (9999px). Consistent use of these tokens ensures visual harmony across all components.
Browser Support and Fallbacks
CSS border-radius has universal browser support in all modern browsers. No vendor prefixes are required. Older browsers that lack support will simply display square corners as a graceful fallback, making it safe to use without conditional logic.





