cx
Defines the x-coordinate of the center of an SVG element, like a <circle> or <ellipse>. You can now control this directly via CSS properties.
It is documented as part of the Scalable Vector Graphics specification.
Syntax
/* Usage Example */
circle {
/* Sets the horizontal center of the SVG circle */
cx: 50px;
fill: #3b82f6;
}
/* Global values */
cx: inherit;
cx: initial;
cx: revert;
cx: revert-layer;
cx: unset;
cx Browser support
Widely available
Since
2020 96% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2020.
43+
69+
9+
79+