可视化生成 CSS border-radius 代码。
To create a perfect circle, set your element's width and height to be exactly equal, then set the border-radius to 50%. You can type 50% into our generator to instantly see the circular result.
Technically, there is no strict numerical maximum, but the browser will automatically cap the radius at 50% of the smaller dimension if the values exceed the size of the box. This prevents the corners from overlapping and breaking the shape.
Yes, you can create organic shapes by using the extended border-radius syntax with up to eight values separated by slashes. Our generator allows you to easily manipulate these eight points visually to create complex fluid shapes.
You can target specific corners by using the individual CSS properties like border-top-left-radius, or by specifying zero for the corners you want to remain sharp in the shorthand syntax. The tool lets you adjust each corner independently for this exact purpose.
Yes, applying a border-radius to a container element will clip both its background color and any background images to fit the rounded corners. If the element has an overflow-hidden property, it will also clip all inner HTML content.