Revision 12401 of tab-size

  • Revision slug: CSS/tab-size
  • Revision title: tab-size
  • Revision id: 12401
  • Created:
  • Creator: fscholz
  • Is current revision? No
  • Comment Gecko 1.9.3 -> 2; 1 words added, 1 words removed

Revision Content

{{ CSSMozExtensionRef() }}

{{ gecko_minversion_header("2") }}


The -moz-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


-moz-tab-size: <integer> | inherit


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


pre {
	-moz-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) --- ---

Revision Source

<p>{{ CSSMozExtensionRef() }}</p>
<p>{{ gecko_minversion_header("2") }}</p>
<p>The <code>-moz-tab-size</code> CSS property is used to customize the width of a tab (U+0009) 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>-moz-tab-size: &lt;integer&gt; | inherit</pre>
<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 {
	-moz-tab-size: 99; /* Don't use tabs! */
<ul> <li><a class="external" title=""><cite>Controlling size of a tab character (U+0009)</cite></a>, an email by Anne van Kesteren (Opera) to the CSSWG.</li>
<h3>Browser compatibility</h3>
<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>
Revert to this revision