x
Directly sets the horizontal position (the x-coordinate) of an SVG shape or element. It is the CSS equivalent of the 'x' attribute used in SVG files.
It is documented as part of the Scalable Vector Graphics specification.
Syntax
/* Usage Example */
rect {
/* moves the rectangle 100 pixels from the left edge of the SVG canvas */
x: 100px;
}
/* Global values */
x: inherit;
x: initial;
x: revert;
x: revert-layer;
x: unset;
x 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.
42+
69+
9+
79+