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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text Boxs

Status
Not open for further replies.

lamore

Technical User
Nov 19, 2000
11
0
0
US
How do you make text boxes have different color backgrounds. And please don't just say using CSS. I need to know how to do it whether it be CSS or something else.
Thanks,
Lenny
 
[tt]

Here's one sample...



<style type=&quot;text/css&quot;>
<!--
.normal {
background-color: #FFFFFF;
}
.over {
background-color: #999999;
}
//-->
</style>

<input type=&quot;text&quot; class=&quot;normal&quot;
onMouseOver=&quot;this.className='over'&quot;
onMouseOut=&quot;this.className='normal'&quot;>
* * * * * * * * * * *
<%=Tony%>
cold.gif

 
Tony,
Thanks, that did it, but how would I change the text color inside the text box?
 
[tt]

No problem.

here's how you change color and style

STYLE=&quot;font-size:9pt;font-family:eek:cr a extended;color:#000066&quot;

Paste it after Name=&quot;&quot;
* * * * * * * * * * *
<%=Tony%>
cold.gif

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top