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.
The default value for the tab-size property is 8 space characters, and it can accept any positive integer value. He are some examples of the various ways tab-size can be used: HTML.
To prevent a text field from being resized, you can use the CSS resize property with its "none" value. After it you can use the height and width properties to define a fixed height and width for your <textarea> element.
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; }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With