tab-size
En esta página
| Clase | Propiedades CSS |
|---|---|
tab-<number> |
tab-size: <number>; |
tab-(<custom-property>) |
tab-size: var(<custom-property>); |
tab-[<value>] |
tab-size: <value>; |
Examples#
Basic example#
Use tab-<number> utilities like tab-2 and tab-8 to control the size of tab characters:
tab-2
{/* prettier-ignore */}
function indent() {
return 'tabbed';
}
tab-8
{/* prettier-ignore */}
function indent() {
return 'tabbed';
}
<!-- [!code classes:tab-2,tab-8] -->
<pre class="tab-2 ...">function indent() { 	return 'tabbed' }</pre>
<pre class="tab-8 ...">function indent() { 	return 'tabbed' }</pre>