i'm using a textarea in which i set the property cols=20 and i've set a default text in the textarea.

And using javascript i'm changing the font of the text inside the textarea when i'm selecting font from a select element.

The problem is even though i set the property cols=20 , the width of the text area is changing according to the font selected. What's the problem? I think the cols property is setting width based on the font and font size..

But i want the text area size to be fixed. Pls help me thru