Jump to content

How to format text in a Textarea?


Dr Pepper Can
 Share

Recommended Posts

  • 1 month later...

Hello Dr.Pepper Can, 

You can define a class in your css stylesheet, and then apply that class to the textarea elements where you want to control the formatting in that particular way.

CSS

.myformat { 
font-family:Verdana,Arial,Helvetica,san-serif; 
font-size:14px; 
color:#fff; 
background-color:#000; 
}

<textarea class="myformat">Generated content</textarea>

 

Adrian Gates

Sr.Web Developer

Edited by Ingolme
Advertising
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...