--- title: letter-spacing slug: Web/CSS/letter-spacing tags: - CSS - CSS Eigenschaft - NeedsMobileBrowserCompatibility - Referenz - SVG translation_of: Web/CSS/letter-spacing ---
Die letter-spacing
CSS Eigenschaft gibt das Abstandsverhalten zwischen Textzeichen an.
{{cssinfo}}
/* <length> Werte */ letter-spacing: 0.3em; letter-spacing: 3px; letter-spacing: .3px; /* Schlüsselwortwerte */ letter-spacing: normal; /* Globale Werte */ letter-spacing: inherit; letter-spacing: initial; letter-spacing: unset;
normal
<length>
<p class="first-example"> letter spacing </p> <p class="second-example"> letter spacing </p> <p class="third-example"> letter spacing </p> <p class="fourth-example"> letter spacing </p>
.first-example { letter-spacing: 0.4em; } .second-example { letter-spacing: 1em; } .third-example { letter-spacing: -0.05em; } .fourth-example { letter-spacing: 6px; }
{{ EmbedLiveSample('Beispiele', 440, 185) }}
Spezifikation | Status | Kommentar |
---|---|---|
{{SpecName('CSS3 Text', '#letter-spacing-property', 'letter-spacing')}} | {{Spec2('CSS3 Text')}} | Keine Änderung |
{{SpecName('CSS3 Transitions', '#animatable-css', 'letter-spacing')}} | {{Spec2('CSS3 Transitions')}} | Definiert letter-spacing als animierbar. |
{{SpecName('CSS2.1', 'text.html#propdef-letter-spacing', 'letter-spacing')}} | {{Spec2('CSS2.1')}} | Keine Änderung |
{{SpecName('SVG1.1', 'text.html#LetterSpacingProperty', 'letter-spacing')}} | {{Spec2('SVG1.1')}} | Ursprüngliche SVG Definition |
{{SpecName('CSS1', '#letter-spacing', 'letter-spacing')}} | {{Spec2('CSS1')}} | Ursprüngliche Definition |