Home Tutorial CSS CSS textarea (Text Area)



MSN Random Online

CSS textarea (Text Area) PDF Print E-mail
Written by Administrator   
Monday, 17 September 2007 03:20

CSS textarea

Defines the properties for a textarea input field on a form.

Browser/User Agent Support

IE Netscape Mozilla Opera Safari
2.0+ 1.0+ 1.0+ 4.0+ 1.0+

Example

 

This example adds a border and padding around all textarea elements:


textarea {
border-color: black;
border-style: solid;
border-width: thin;
padding: 3px;
}

Remarks

You will usually use classes and id's to style individual textarea elements, rather than styling all textarea elements at once.