Every rounded corner you have ever set with a single value is a quarter of a circle. One radius, one curve, bending equally along the top edge and the side edge. That is enough for most cards and buttons.
CSS allows each corner a second radius, though, and that changes the geometry. Give a corner a horizontal radius and a different vertical radius and the curve becomes a quarter of an ellipse: it can sweep a long way along the top while barely dipping down the side. This guide explains how the two values work, how to read the slash syntax, and how to build them with the free Border Radius Generator on Ovatly.
Contents
- Quick answer
- One radius makes a quarter-circle
- Two radii make a quarter-ellipse
- Worked example: reading the blob, value by value
- How to build an elliptical corner, step by step
- When an ellipse beats a circle segment
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
- References
Quick answer
An elliptical corner takes two radii instead of one: a horizontal radius and a vertical radius. In CSS the two sets are written in one border-radius declaration separated by a slash, horizontal values first, both sets in the order top left, top right, bottom right, bottom left. In the Border Radius Generator, switch on Fancy mode, set each corner's horizontal and vertical sliders, and copy the declaration it emits. The values are percentages of the element's own size.
One radius makes a quarter-circle
Start with the familiar case. A corner with one radius, say 20%, curves along an arc of a circle whose radius is 20%. The curve travels the same distance along the top edge as down the side edge, because a circle has no preferred direction. Set all four corners equal and the element gets four identical quarter-circles.
The generator's special case shows the geometry at its purest: set every radius to 50% on a square and the four quarter-circles join into one full circle. There is no separate circle setting.
The constraint of the single-value form is symmetry: the curve is always as deep as it is wide. On a square card that is fine. On a wide, shallow banner it is a real limitation, because a radius generous along the top would eat too far down the short sides.
Two radii make a quarter-ellipse
An ellipse is a circle stretched in one direction, and a quarter-ellipse corner inherits that stretch. The horizontal radius decides how far the curve travels along the top or bottom edge; the vertical radius decides how far it travels down or up the side edge. A larger horizontal radius makes a long, shallow sweep. A larger vertical radius makes a tall, narrow one.
The CSS syntax packs both sets into one declaration, separated by a slash:
border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
Read it as two lists of four. Before the slash: the horizontal radius of each corner, in the order top left, top right, bottom right, bottom left. After the slash: the vertical radius of the same four corners, in the same order. When the two lists are identical, every corner is a quarter-circle and the slash form collapses back to the simple form.
Worked example: reading the blob, value by value
The generator's demonstration shape is an organic blob on a square element, built in Fancy mode with these values:
- Horizontal radii: 30, 70, 70, 30
- Vertical radii: 30, 30, 70, 70
Take the corners one at a time, in the standard order. Top left pairs a horizontal 30 with a vertical 30, so it is the one true quarter-circle of the four. Top right pairs a horizontal 70 with a vertical 30: the curve runs a long way along the top edge but only a short way down the right side, a wide and shallow sweep. Bottom right pairs 70 with 70, a big quarter-circle. Bottom left pairs a horizontal 30 with a vertical 70: narrow along the bottom, tall up the left side.
On a 400 px square, the top right corner's horizontal radius is 70 percent of 400 px, which is 280 px of travel along the top edge, against only 120 px down the side. That mismatch, a curve more than twice as wide as it is deep, is what makes the shape read as organic rather than engineered. Blobs, pebbles and leaf shapes are all built from mismatches like this.
How to build an elliptical corner, step by step
- Open the Border Radius Generator and switch on Fancy mode. Each corner now has two values instead of one.
- Set the horizontal radii first, thinking only about how far each curve should travel along the top and bottom edges.
- Set the vertical radii second, thinking only about travel down the sides. This is where shallow or tall corners are decided.
- Check each corner as a pair. Equal values give a quarter-circle; a bigger horizontal value gives a shallow sweep; a bigger vertical value gives a tall one.
- Copy the emitted declaration, slash and all, into your stylesheet. Keep the two lists together: editing one without the other is how shapes break.
When an ellipse beats a circle segment
Wide, shallow elements are the clearest case. A single radius on a short element is limited by the short side: push it too far and the curve consumes the side. An elliptical corner escapes that limit, because the horizontal radius can keep growing while the vertical radius stays within the height. Headers, banners and wide buttons all benefit.
Organic shapes are the second case. Anything that should look grown rather than manufactured, such as blobs behind hero text, pebble-shaped tags or leaf motifs, needs corners that disagree with each other. A quarter-circle always looks machined; a quarter-ellipse can look soft and irregular.
Limitations and honest tradeoffs
The generator works in percentages, in Fancy mode as much as in normal mode, and it does not emit pixel values. The bridge is the one its FAQ gives: take the percentage declaration as a starting point, replace % with px, and adjust from there.
Percentages carry a second consequence: horizontal radii resolve against the element's width and vertical radii against its height, so a shape tuned on a square will stretch on a rectangle. The declaration survives the move; the exact look does not.
The generator builds one element's corner shape and emits one declaration. Choreographing it across a whole interface is design work in your own stylesheet.
Common mistakes
- Reading the slash backwards. The values after the slash are not a second set of corners. They are the vertical radii of the same four corners.
- Getting the corner order wrong. Both lists run top left, top right, bottom right, bottom left. Reading them as top left, top right, bottom left, bottom right scrambles the shape.
- Expecting the blob to survive a rectangle. The demonstration values are percentages tuned on a square, and on a rectangle they resolve against different dimensions, so the shape stretches.
- Asymmetry by accident. Eight values are easy to nudge out of alignment. If a corner looks wrong, compare its pair against the corner opposite it before changing anything else.
FAQs
What does the slash in border-radius mean? It separates the horizontal radii from the vertical radii. Values before the slash are the horizontal radius of each corner, in the order top left, top right, bottom right, bottom left. Values after it are the matching vertical radii.
What is the difference between a round corner and an elliptical corner? A round corner is a quarter-circle: one radius, curving equally in both directions. An elliptical corner is a quarter-ellipse: a horizontal radius and a vertical radius that can differ, so the curve can stretch wide while staying shallow, or the reverse.
How do I set two values per corner in the generator? Enable Fancy mode in the Border Radius Generator. Each corner then takes separate horizontal and vertical values instead of one, and the declaration is emitted with slash syntax.
Can I get pixel values for elliptical corners? The generator works in percentages and does not emit pixels. Use the percentage declaration as a starting point and replace % with px in your stylesheet, then adjust by eye.
Why does the same blob look different on a rectangle? Percentages are relative to the element. Horizontal radii are a percentage of the width and vertical radii a percentage of the height, so the same values stretch differently on a rectangle than on a square.
Conclusion
Two values per corner turn the rounded corner from a fixed curve into a drawn one: wide or tall, shallow or deep, each corner on its own terms. The slash syntax looks dense until you read it as two lists of four, horizontal before the slash and vertical after it. The Border Radius Generator builds those shapes with Fancy mode and hands you the declaration ready to paste. Once the syntax is clear, the remaining question is which shape your cards should repeat, and our guide to designing rounded cards that match your brand style works through that choice. For more guides in this series, see our Website and Webmaster Tools guides.
References
- MDN Web Docs, on the
border-radiusproperty, including elliptical corners and slash syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius - MDN Web Docs, on the
border-top-left-radiuslonghand and its two-value form: https://developer.mozilla.org/en-US/docs/Web/CSS/border-top-left-radius