CSS tab-size Property
CSS's tab-size property specifies the width of the tab character. In an HTML document, the tab-size usually displays a single space character. Some elements, such as <textarea>
and <pre>
, display the tab-size.
Syntax
Property Values
Value | Description |
---|---|
number | The number of space characters that should be displayed for each tab character. The default value is eight. |
length | A tab-length. character's None of the major browsers support this property value. |
initial | This property is set to its default value. |
inherit | This property is inherited from its parent element. |
Supported Browsers
Property | Chrome | Firefox | Safari | Edge / IE | Opera |
---|---|---|---|---|---|
tab-size | 21.0 | 4.0 -moz- | 6.1 | 79.0 |
15.0
10.6 -o- |