Get to know MDN better
This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.
The circle() CSS function defines a circle using a radius and a position. It is one of the <basic-shape> data types.
This may be a <length>, or a <percentage> or values closest-side and farthest-side.
closest-sideUses the length from the center of the shape to the closest side of the reference box. For circles, this is the closest side in any dimension.
farthest-sideUses the length from the center of the shape to the farthest side of the reference box. For circles, this is the farthest side in any dimension.
<position>Moves the center of the circle. May be a <length>, or a <percentage>, or a values such as left. The <position> value defaults to center if omitted.
In the example below, the shape-outside property has a value of circle(50%), which defines a circle on a floated element for the text to flow round.
| CSS Shapes Module Level 1 # funcdef-basic-shape-circle |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Apr 18, 2026 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.