Skip to content Skip to sidebar Skip to footer

Prevent Expand To Textarea

I am using IE8 and I have textarea on the page. It's width set to 80% with maxlength of 132 chars. If the user write text that not contains spaces, like the letter V 132 times with

Solution 1:

Use word-wrap: break-word; to wrap the long unbroken line.

textarea
{
    word-wrap: break-word;
}

http://jsfiddle.net/bLKPq/2/

Solution 2:

Set rows and cols property to it

Solution 3:

Just need to add:

textarea
{
    word-break:break-all;
}

Post a Comment for "Prevent Expand To Textarea"