Oh no! Tabs versus spaces

tab-size

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.

Examples

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

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

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

🔗 🔎