CSS tab-size Property
Example
.example1 {
tab-size: 2;
}
.example2 {
tab-size: 10;
}
1234
Meaning
The tab-size property is used to customize the width of tab characters (U+0009).
Note: No browser is currently supporting the length unit value.
Default value: | 8 |
Inherited: | Yes |
Animatable: | No |
Version: | CSS3 |
JavaScript syntax: |
|
Standard Syntax
tab-size: number|length|initial|inherit|revert|revert-layer|unset;
Browser Support
The numbers in the table specify the first browser version that fully supports the property.
Status
Property Values
The following table describes the values of this property.
Value | Description |
---|---|
number | Default value is 8. Specifies the number of space-characters to be displayed for each tab-character. |
length | Specifies the width of a tab as a length value in px, pt, cm, em, etc. Negative length values are not allowed. |
initial | Sets this property to its default value. |
inherit | If specified, the associated element takes the computed value of its parent element animation-delay property. |
revert | Reverts the cascaded value of the property from its current value to the value the property |
revert-layer | Rollback styles to the ones specified in previous cascade layers. |
unset | Resets a property to its inherited value if the property naturally inherits from its parent, and to its initial value if not. |
Default CSS Property Values
selectors {
tab-size: 8;
}