Friday, April 9, 2010

Limit the Number of Characters in a Textarea or Text Field

removing link outline around

Some browser when you click on link text or link image you always see outline box around text or image link.


a, object {
outline: none;
}

safari disable resize textarea

You can use the CSS3 'resize' property to "specify whether or not an element is resizable by the user":


textarea
{
resize:none;
}


or you can use


textarea
{
max-width: 175px; /* RESTRICT SAFARI RESIZE */
max-height: 250px; /* RESTRICT SAFARI RESIZE */
}