CSS · Properties — Scalable Vector Graphics

text-anchor

The CSS text-anchor property. Initial value: start. Inherited.

Syntax
text-anchor: start | middle | end

Example

Try it

Notes

Media: visual. Applies to: limitedSVGElementsTextContent. Computed value: asSpecified.

More in this group

cx cy d fill fill-opacity fill-rule marker-end marker-mid

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course