tab-size

  • Revision slug: CSS/tab-size
  • Revision title: tab-size
  • Revision id: 12399
  • Created:
  • Creator: Ms2ger
  • Is current revision? No
  • Comment Fix; 3 words added, 5 words removed

Revision Content

{{ CSSMozExtensionRef() }}

Summary

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

Syntax

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

Values

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

Examples

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

Specifications

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

{{ CSSMozExtensionRef() }}
<h3>Summary</h3>
<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>
</ul>
<h3>Syntax</h3>
<pre>-moz-tab-size: &lt;integer&gt; | inherit</pre><h3>Values</h3>
<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>
</dl>
<h3>Examples</h3>
<pre>pre {
	-moz-tab-size: 99; /* Don't use tabs! */
}
</pre>
<h3>Specifications</h3>
<ul> <li><a class="external" title="http://lists.w3.org/Archives/Public/www-style/2008Dec/0009.html"><cite>Controlling size of a tab character (U+0009)</cite></a>, an email by Anne van Kesteren (Opera) to the CSSWG.</li>
</ul>
<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>
</table>
Revert to this revision