Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can you change font style in a Text Area box? 1

Status
Not open for further replies.

danielh68

Technical User
Jul 31, 2001
431
US
Hi,

Is it possible to change the font style in a Text Area box?

Thanks in advance,
DanH
 
try
<textarea style=&quot;font-family:georgia;color:red;&quot;></textarea>
---------------------------------------
{ str = &quot;sleep is good for you. sleep gives you the energy you need to function&quot;;
ptr = /sleep/gi;Nstr = str.replace(ptr,&quot;coffee&quot;);alert(Nstr); }
---------------------------------------
for the best results to your questions: FAQ333-2924

 
Thanks onpt,

It works great. However I tried adding bold to it, such as
style=&quot;font-family:arial;color:#666666;weight:bold;&quot; I just could not get it to recognize the instruction. It's not a big issue, I'm happy with what I can do now.

Thanks a million,
DanH



 
syntax for bold is
font-weight:bold; ---------------------------------------
{ str = &quot;sleep is good for you. sleep gives you the energy you need to function&quot;;
ptr = /sleep/gi;Nstr = str.replace(ptr,&quot;coffee&quot;);alert(Nstr); }
---------------------------------------
for the best results to your questions: FAQ333-2924

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top