--- title: word-spacing slug: Web/CSS/word-spacing tags: - CSS - CSS Text - NeedsLiveSample - NeedsMobileBrowserCompatibility - Property - Referenz translation_of: Web/CSS/word-spacing ---
Die word-spacing CSS Eigenschaft gibt das Abstandsverhalten zwischen Tags und Wörtern an.
{{cssinfo}}
/* Schlüsselwortwerte */ word-spacing: normal; /* <length> Werte */ word-spacing: 3px; word-spacing: 0.3em; /* <percentage> Werte */ word-spacing: 50%; word-spacing: 200%; /* Globale Werte */ word-spacing: inherit; word-spacing: initial; word-spacing: unset;
normal<length><percentage>Der folgende CSS Code:
#mozdiv1 {
word-spacing: 15px;
}
#mozdiv2 {
word-spacing: 5em;
}
formatiert zwei {{HTMLElement("div")}} Tags, die Text beinhalten wie hier gezeigt:

| Spezifikation | Status | Kommentar |
|---|---|---|
| {{SpecName('CSS3 Text', '#propdef-word-spacing', 'word-spacing')}} | {{Spec2('CSS3 Text')}} | Ersetzt die vorherigen Werte mit einem <spacing-limit> Wert, der denselben Wert definiert plus den <percentage> Wert und erlaubt bis zu drei Werte, die den Optimal-, Minimal- und Maximalwert beschreiben. |
| {{SpecName('CSS3 Transitions', '#animatable-css', 'word-spacing')}} | {{Spec2('CSS3 Transitions')}} | Definiert word-spacing als animierbar. |
| {{SpecName('CSS2.1', 'text.html#propdef-word-spacing', 'word-spacing')}} | {{Spec2('CSS2.1')}} | Keine Änderung |
| {{SpecName('CSS1', '#word-spacing', 'word-spacing')}} | {{Spec2('CSS1')}} | Ursprüngliche Definition |