Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The side attribute determines the side of a path the text is placed on (relative to the path direction).
You can use this attribute with the following SVG elements:
The following example draws two circular text paths, displaying text on the left-hand side and the right-hand side, respectively.
<svg viewBox="0 0 420 200" xmlns="http://www.w3.org/2000/svg">
<text>
<textPath href="#circle1" side="left">Text on left of path</textPath>
</text>
<text>
<textPath href="#circle2" side="right">Text on right of path</textPath>
</text>
<circle id="circle1" cx="100" cy="100" r="70" fill="none" stroke="silver" />
<circle id="circle2" cx="320" cy="100" r="70" fill="none" stroke="silver" />
</svg>Browsers that support setting the side attribute will display text to the left (outside) and to the right (inside) of the circular text path below.
| Value | left | right |
|---|---|
| Default value | left |
| Animatable | Yes |
leftThis value places the text on the left side of the path (relative to the path direction).
rightThis value places the text on the right side of the path (relative to the path direction). This effectively reverses the path direction.