letter-spacing

  • Revision slug: SVG/Attribute/letter-spacing
  • Revision title: letter-spacing
  • Revision id: 30046
  • Created:
  • Creator: Jeremie
  • Is current revision? No
  • Comment page created, 161 words added

Revision Content

« SVG Attribute reference home

The letter-spacing attribute specifies spacing behavior between text characters supplemental to any spacing due to the {{ SVGAttr("kerning") }} attribute.

For SVG, if a <length> is provided without a unit identifier (e.g., an unqualified number such as 128), the browser processes the <length> as a width value in the current user coordinate system.

If a <length> is provided with one of the unit identifiers (e.g., .25em or 1%), then the browser converts the <length> into a corresponding value in the current user coordinate system.

As a presentation attribute, it also can be used as a property directly inside a CSS stylesheet, see {{ cssxref("letter-spacing","CSS letter-spacing") }} for further information.

Usage context

Categories Presentation attribute
Value normal | <length> | inherit
Animatable Yes
Normative document SVG 1.1 (2nd Edition)

{{ page("/en/SVG/Content_type","Length") }}

Elements

The following elements can use the letter-spacing attribute

See also

  • {{ cssxref("letter-spacing","CSS letter-spacing") }}

Revision Source

<p>« <a href="/en/SVG/Attribute" title="en/SVG/Attribute">SVG Attribute reference home</a></p>
<p>The <code>letter-spacing</code> attribute specifies spacing behavior between text characters supplemental to any spacing due to the {{ SVGAttr("kerning") }} attribute.</p>
<p>For SVG, if a <a href="/en/SVG/Content_type#Length" title="https://developer.mozilla.org/en/SVG/Content_type#Length">&lt;length&gt;</a> is provided without a unit identifier (e.g., an unqualified number such as 128), the browser processes the <a href="/en/SVG/Content_type#Length" title="https://developer.mozilla.org/en/SVG/Content_type#Length">&lt;length&gt;</a> as a width value in the current user coordinate system.</p>
<p>If a <a href="/en/SVG/Content_type#Length" title="https://developer.mozilla.org/en/SVG/Content_type#Length">&lt;length&gt;</a> is provided with one of the unit identifiers (e.g., .25em or 1%), then the browser converts the <a href="/en/SVG/Content_type#Length" title="https://developer.mozilla.org/en/SVG/Content_type#Length">&lt;length&gt;</a> into a corresponding value in the current user coordinate system.</p>
<p>As a presentation attribute, it also can be used as a property directly inside a CSS stylesheet, see {{ cssxref("letter-spacing","CSS letter-spacing") }} for further information.</p>
<h2 id="Usage_context">Usage context</h2>
<table class="standard-table"> <tbody> <tr> <th scope="row">Categories</th> <td>Presentation attribute</td> </tr> <tr> <th scope="row">Value</th> <td>normal | <a href="/en/SVG/Content_type#Length" title="https://developer.mozilla.org/en/SVG/Content_type#Length">&lt;length&gt;</a> | <strong title="this is the default value">inherit</strong></td> </tr> <tr> <th scope="row">Animatable</th> <td>Yes</td> </tr> <tr> <th scope="row">Normative document</th> <td><a class="external" href="http://www.w3.org/TR/SVG11/text.html#LetterSpacingProperty" title="http://www.w3.org/TR/SVG11/text.html#LetterSpacingProperty">SVG 1.1 (2nd Edition)</a></td> </tr> </tbody>
</table>
<p>{{ page("/en/SVG/Content_type","Length") }}</p>
<h2 id="Elements">Elements</h2>
<p>The following elements can use the <code>letter-spacing</code> attribute</p>
<ul> <li><a href="/en/SVG/Element#Text_content_elements" title="en/SVG/Element#Text_content_elements">Text content elements</a> »</li>
</ul>
<h2 id="See_also">See also</h2>
<ul> <li>{{ cssxref("letter-spacing","CSS letter-spacing") }}</li>
</ul>
Revert to this revision