Use the same center in rotate so it spins in place.
Angles are degrees; negative values rotate the other way.
Edge Cases & Pitfalls
Most missing-ellipse bugs are radii, viewport, or fill/stroke settings.
radii
rx and ry must be positive
Either radius at 0 or less disables rendering. Always set both.
viewBox
Stay inside the viewBox
Fit the SVG around cx ± rx and cy ± ry (plus room after rotation).
tilt
Axis-aligned by default
You cannot angle the oval with rx/ry alone. Use transform.
style
fill none needs a stroke
With fill="none" and no stroke, you see nothing. Set at least one visible paint.
Compatibility
Browser Support
The SVG <ellipse> element is supported in every modern browser.
✓ Baseline · Widely available
SVG <ellipse>
Widely available since about July 2015. Chrome, Firefox, Safari, Edge, and Opera support ellipse geometry and presentation attributes. Internet Explorer 9+ supports basic SVG ellipses.
98%Global support (approx.)
Google ChromeAll modern
Full support
Mozilla FirefoxAll modern
Full support
Apple SafariAll modern
Full support
Microsoft EdgeAll modern
Full support
OperaAll modern
Full support
Samsung InternetAll modern
Full support
Internet Explorer9+
Supported
<ellipse>Widely supported
Bottom line: Safe for production icons, charts, and UI marks. Prefer attributes for teaching; CSS geometry properties are fine in modern browsers.
Remember
Key Takeaways
Geometry:cx, cy, positive rx and ry.
Paint:fill, stroke, stroke-width.
Scale: parent viewBox + CSS size.
Circle? Use <circle>; tilt? use transform.
One line: center + two radii + paint inside an <svg>.
UA style
Default CSS Settings
SVG shapes use presentation defaults more than a browser CSS rule sheet. Typical initial paint:
Set fill / stroke explicitly in examples so results stay predictable across contexts.
Frequently Asked Questions
Put an <ellipse> inside an <svg>. Set cx and cy for the center, rx for the horizontal radius, ry for the vertical radius, then style with fill and/or stroke.
cx and cy are the center. rx is the x-axis radius; ry is the y-axis radius. If either radius is 0 or less, the ellipse is not rendered.
circle uses one radius (r). ellipse uses rx and ry. Prefer circle when both axes are equal; use ellipse for ovals.
Not with rx/ry alone. Rotate it with the transform attribute (for example rotate(45 cx cy)).
Common causes: rx or ry is 0, the shape is outside the viewBox, fill is none with no stroke, or the SVG has zero width/height.
Yes. Use presentation attributes or CSS (including SVG2 geometry properties cx, cy, rx, and ry as CSS where supported).