Oh no! Tabs versus spaces


Use this property to set the width of the whitespace created by a TAB keystroke.

Property values

Specify this as an integer, for an equivalent number of spaces, or as a typographic length.


/* TAB equals 4 spaces */
tab-size: 4;

/* TAB equals 2 relative em */
tab-size: 2rem;

style > character > tab-sizeOh no! Tabs versus spaces