tab-size

Summary

The tab-size CSS property is used to customize the width of a tab (U+0009) character.

Syntax

tab-size: <integer> | inherit

Values

<integer>
The number of spaces in a tab. Must be positive.
inherit
Inherits from the parent element.

Examples

pre {
  tab-size: 4; /* Set tab size to 4 spaces */
}
pre {
  tab-size: 0; /* Remove indentation */
}
pre {
  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) --- ---

See also

Tags (4)

Edit tags

Attachments (0)

 

Attach file