property

Rx — CSS reference

Sets the horizontal radius of an ellipse or corner radius of a rectangle. The CSS declaration overrides the corresponding presentation attribute on this supported SVG element. This is not an HTML positioning property.

Formal Syntax & Structure

css syntaxcss
rx: 30px;

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>rx</title><style>body{margin:0;background:white}svg{display:block}#a{rx:30px}</style><body><svg xmlns="http://www.w3.org/2000/svg" width="240" height="160" viewBox="0 0 240 160" role="img" aria-label="SVG styling example"><ellipse id="a" cx="60" cy="60" rx="20" ry="20"/></svg></body></html>
CSS Reference