--- title: tab-size slug: Web/CSS/tab-size tags: - CSS - CSS Eigenschaft - Experimentell - Referenz translation_of: Web/CSS/tab-size --- <p>{{ CSSRef() }}</p> <p>{{ SeeCompatTable() }}</p> <h2 id="Übersicht">Übersicht</h2> <p>Die <code>tab-size</code> <a href="/de/docs/Web/CSS">CSS</a> Eigenschaft wird verwendet, um die Breite eines Tabulatorzeichens (<code>U+0009</code>) anzupassen.</p> <p>{{cssinfo}}</p> <h2 id="Syntax">Syntax</h2> <pre class="brush:css">/* <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> <h3 id="Werte">Werte</h3> <dl> <dt>{{cssxref("<integer>")}}</dt> <dd>Die Anzahl der Leerzeichen in einem Tabulator. Darf nicht negativ sein.</dd> <dt>{{cssxref("<length>")}}</dt> <dd>Die Breite eines Tabulators. Darf nicht negativ sein.</dd> </dl> <h3 id="Formale_Syntax">Formale Syntax</h3> {{csssyntax}} <h2 id="Beispiele">Beispiele</h2> <pre class="brush: css">pre { tab-size: 4; /* Setzt die Tabgröße auf 4 Leerzeichen */ } </pre> <pre class="brush: css">pre { tab-size: 0; /* Entfernt die Einrückung */ } </pre> <pre class="brush: css">pre { tab-size: 99; /* Verwende keine Tabs! */ } </pre> <h2 id="Spezifikationen">Spezifikationen</h2> <table class="standard-table"> <thead> <tr> <th scope="col">Spezifikation</th> <th scope="col">Status</th> <th scope="col">Kommentar</th> </tr> </thead> <tbody> <tr> <td>{{SpecName('CSS3 Text', '#tab-size', 'tab-size')}}</td> <td>{{Spec2('CSS3 Text')}}</td> <td>Ursprüngliche Definition</td> </tr> </tbody> </table> <h2 id="Browser_Kompatibilität">Browser Kompatibilität</h2> <p>{{Compat("css.properties.tab-size")}}</p> <h2 id="Siehe_auch">Siehe auch</h2> <ul> <li><a class="external" href="http://lists.w3.org/Archives/Public/www-style/2008Dec/0009.html"><cite>Controlling size of a tab character (U+0009)</cite></a>, ein E-Mail von Anne van Kesteren an das CSSWG.</li> </ul>