By default tab symbol in textarea equals to the width of 8 spaces. Is it possible to change this value to 4 for example?
I am mostly interested in using this in Chrome browser.
You can use the following css for Firefox 4.0+, Chrome 21+ and Opera 10.6+
textarea,
pre {
-moz-tab-size : 4;
-o-tab-size : 4;
tab-size : 4;
}
tab-size
not -webkit-tab-size
). More details available on the MDN developer.mozilla.org/en-US/docs/CSS/tab-size
Dec 17, 2012 at 14:38