--- title: tab-size slug: Web/CSS/tab-size tags: - CSS - CSS Eigenschaft - Experimentell - Referenz translation_of: Web/CSS/tab-size ---
{{ CSSRef() }}
{{ SeeCompatTable() }}
Die tab-size CSS Eigenschaft wird verwendet, um die Breite eines Tabulatorzeichens (U+0009) anzupassen.
{{cssinfo}}
/* <integer> Werte */ tab-size: 4; tab-size: 0; /* <length> Werte */ tab-size: 10px; tab-size: 2em; /* Globale Werte */ tab-size: inherit; tab-size: initial; tab-size: unset;
pre {
tab-size: 4; /* Setzt die Tabgröße auf 4 Leerzeichen */
}
pre {
tab-size: 0; /* Entfernt die Einrückung */
}
pre {
tab-size: 99; /* Verwende keine Tabs! */
}
| Spezifikation | Status | Kommentar |
|---|---|---|
| {{SpecName('CSS3 Text', '#tab-size', 'tab-size')}} | {{Spec2('CSS3 Text')}} | Ursprüngliche Definition |
{{Compat("css.properties.tab-size")}}