The side attribute determines the side of a path the text is placed on (relative to the path direction).

Only one element is using this attribute: <textPath>

<svg viewBox="0 0 420 200" xmlns="http://www.w3.org/2000/svg">
    <textPath href="#circle1" side="left">Text left from the path</textPath>
    <textPath href="#circle2" side="right">Text right from the path</textPath>

  <circle id="circle1" cx="100" cy="100" r="70" fill="transparent" stroke="silver"/>
  <circle id="circle2" cx="320" cy="100" r="70" fill="transparent" stroke="silver"/>

Usage notes

Value left | right
Default value left
Animatable Yes
This value places the text on the left side of the path (relative to the path direction).
This value places the text on the right side of the path (relative to the path direction). This effectively reverses the path direction.


Specification Status Comment
Scalable Vector Graphics (SVG) 2
The definition of 'side' in that specification.
Candidate Recommendation Initial definition

Browser compatibilityUpdate compatibility data on GitHub

Chrome Edge Firefox Internet Explorer Opera Safari
side No No 61 No No No
Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
side No No 61 No No No

© 2005–2020 Mozilla and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.