property
tab-size — CSS reference
Sets tab stops when tabs are preserved. Initial eight and inherited. A number represents multiples of the space advance, not pixels. Normal whitespace processing may collapse tabs.
Formal Syntax & Structure
css syntaxcss
<number [0,∞]> | <length [0,∞]>Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS text lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}
#a{tab-size:4}</style><body><p id="a">Design readable interfaces with CSS.</p><p lang="fa" dir="rtl">متن فارسی برای آزمایش چیدمان</p></body></html>