« SVG Attribute reference home
The alignment-baseline
attribute specifies how an object is aligned with respect to its parent. This property specifies which baseline of this element is to be aligned with the corresponding baseline of the parent. For example, this allows alphabetic baselines in Roman text to stay aligned across font size changes. It defaults to the baseline with the same name as the computed value of the alignment-baseline property.
As a presentation attribute, it also can be used as a property directly inside a CSS stylesheet, see css alignment-baseline
for further information.
Usage context
Categories | Presentation attribute |
---|---|
Value | auto | baseline | before-edge | text-before-edge | middle | central | after-edge | text-after-edge | ideographic | alphabetic | hanging | mathematical | inherit |
Animatable | Yes |
Normative document | SVG 1.1 (2nd Edition) |
Example
Elements
The following elements can use the alignment-baseline
attribute
For object alignment in other elements (such as <text>
), see dominant-baseline
.