CSS tab size Property
CSS tab-size Property
The tab-size property is used to specify the width of a tab character. The tab character is usually displayed as a single space character and the result of the tab-size property will only be visible for textarea and pre elements.
Default Value:-
Its default value is 8.
Syntax:-
Its syntax is:- tab-size: number | length | initial | inherit;
Further Explanation:-
Value | Description |
---|---|
number | The number of space characters to be displayed for each tab character. |
length | The length of a tab-character. |
initial | Sets this property to its default value. |
inherit | Inherits this property from its parent element. |