Check how a rounded corner changes on a wider box
Admin ·
Start with the size and proportions your component will have on the page. A square avatar and a long label can use the same border-radius declaration and end up with different outlines.
Compare a circle and an ellipse at 50%
Choose Circle. At 144 × 144 pixels, the 50% radius uses 72 pixels on both axes. Change Preview width to 240 pixels and Preview height to 96 pixels. The CSS stays at 50%, and the corner axes grow to 120 pixels horizontally and 48 pixels vertically.
Choose Capsule to keep the 240 × 96 box and switch to a 240px radius. The browser scales the overlapping radii down to 48px at this size. The middle of each long edge becomes straight.
W3C CSS Backgrounds and Borders, corner roundingW3C CSS Backgrounds and Borders, overlapping curves
Check the four corners clockwise
Choose Asymmetric and read 34px 10px 26px 0 in the output. Start at the top-left corner and read clockwise. The last value leaves the bottom-left corner square.
Open Soft square in Elliptical mode to compare two axes. The values before the slash set the horizontal radii and those after it set the vertical radii. Change only Top left vertical radius to see a taller arc in that corner.
Inspect the stylesheet at the target size
Download border-radius.css and apply its rounded-box class to your element. Set its width and height in your project because the tool keeps the preview dimensions separate from the generated radius.
Inspect the shape at each width your layout actually uses. If a large radius squeezes the corners together at a narrow size, reduce the radii and check again on the same box.
W3C CSS Backgrounds and Borders, corner roundingW3C CSS Backgrounds and Borders, overlapping curves
Common questions
Why does the CSS show only two corner values?
When opposite corners match, CSS can express all four radii with two entries. The first applies to top left and bottom right.
Does exporting the CSS set the preview width?
The generated rule sets the radius. Assign the width and height in your layout and compare it at the same dimensions as the preview.