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

  • Initial value8
  • Applies toblock containers
  • InheritedYes
  • MediaVisual
  • Computed valuethe specified integer or an absolute length
  • AnimatableNo
  • CSS VersionCSS3
  • JavaScript
Formal syntax: <integer> | <length>

tab-size: 5;
tab-size: 10px;
  • <integer>The number of spaces in a tab. Must be positive value.
  • <length>The width of a tab. Must be positive value.
.class {
   tab-size: 4;

Last updated on 23rd March 2014 By Rene Spronk

View All CSS Properties

Errors? Please help to keep this list up to date, If you find any errors, please contact us, so that we can get them fixed.