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!

Changing color of Fonts

Status
Not open for further replies.
you can put the text inside a div:

<div style=&quot;color:#FF0000&quot;>text here</div>

inside a font tag:

<font color=&quot;#FF0000&quot;>text here</font>

or inside a table:

<table border=0 cellpadding=0 cellspacing=0>
<tr><td style=&quot;color:#FF0000&quot;>text here</td></tr></table>


the easiest, and most widly supported is the font tag.

also: some colors:

Blue=#0000FF
Green=#00FF00
Red=#FF0000
purple=#00CCCC

you might also want to check out downloading an html color converter (
 
Hi,

I'm still unclear as to 'where' the font tag should go in relation to
<option value=&quot;mypage.htm&quot;>my text</option>

as well as the description box
descriptions[0]=&quot;my description&quot;

Thanks Again!! Deborah
 
You can put the style attribute in the select tag or textarea tag to change the color.

As for your situation:
eg)

<select name=&quot;example&quot; size=&quot;1&quot; onChange=&quot;showtext()&quot; style=&quot;color:red&quot;>

<textarea rows=8 cols=21 wrap=&quot;virtual&quot; name=&quot;text&quot; style=&quot;color:red&quot;>

Hope this helps!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top