Revision 12404 of tab-size

  • Revision slug: CSS/tab-size
  • Revision title: tab-size
  • Revision id: 12404
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment page display name changed to 'tab-size'

Revision Content


The tab-size CSS property is used to customize the width of a tab (U+0009) character.

  • {{ Xref_cssinitial() }}: 8
  • Applies to: all elements
  • {{ Xref_cssinherited() }}: yes
  • Media: {{ Xref_cssvisual() }}
  • {{ Xref_csscomputed() }}: as specified


tab-size: <integer> | inherit


{{ Xref_cssinteger() }}
The number of spaces in a tab. Must be positive.
Inherits from the parent element.


pre {
  tab-size: 99; /* Don't use tabs! */


Browser compatibility

Browser Lowest Version Support of
Internet Explorer --- ---
Firefox 4.0 (Gecko 2.0) -moz-tab-size
Opera 10.60 -o-tab-size
Safari (WebKit) --- ---

See also

Revision Source

<p>The <code>tab-size</code> CSS property is used to customize the width of a tab (<code>U+0009</code>) character.</p>
<ul> <li>{{ Xref_cssinitial() }}: 8</li> <li>Applies to: all elements</li> <li>{{ Xref_cssinherited() }}: yes</li> <li>Media: {{ Xref_cssvisual() }}</li> <li>{{ Xref_csscomputed() }}: as specified</li>
<pre>tab-size: &lt;integer&gt; | inherit
<dl> <dt>{{ Xref_cssinteger() }}</dt> <dd>The number of spaces in a tab. Must be positive.</dd> <dt>inherit</dt> <dd>Inherits from the parent element.</dd>
<pre>pre {
  tab-size: 99; /* Don't use tabs! */
<ul> <li><a class="external" href=""><cite>CSS Text Level 3 ― The "tab-size" property</cite></a> W3C Editor's Draft</li>
<h2>Browser compatibility</h2>
<table class="standard-table"> <tbody> <tr> <th>Browser</th> <th>Lowest Version</th> <th>Support of</th> </tr> <tr> <td>Internet Explorer</td> <td>---</td> <td>---</td> </tr> <tr> <td>Firefox</td> <td>4.0 (Gecko 2.0)</td> <td><code>-moz-tab-size</code></td> </tr> <tr> <td>Opera</td> <td>10.60</td> <td><code>-o-tab-size</code></td> </tr> <tr> <td>Safari (WebKit)</td> <td>---</td> <td>---</td> </tr> </tbody>
<h2>See also</h2>
<ul> <li><a href="/en/CSS/CSS_Reference" title="CSS Reference">CSS Reference</a></li> <li><a class="external" href="" title=""><cite>Controlling size of a tab character (U+0009)</cite></a>, an email by Anne van Kesteren (Opera) to the CSSWG.</li>
Revert to this revision