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

chang font color in input box 1

Status
Not open for further replies.

skiflyer

Programmer
Sep 24, 2002
2,213
US
How to I manipulate the colors of the font (and maybe background of the input box) with an

<input type=&quot;text&quot;....> box?

Thanks,

Rob
 
input {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
font-weight: normal;
color: #000000;
text-decoration: none;
background-color: f3f3f3;
height: 20px;
width: 200px;
border: 1px inset #999999;
}

put this style in your stylesheet or in your head of you document

then just change the colors, fonts or dimensions [Hammer]
Nike Failed Slogans -- &quot;Just Don't Do It!&quot;
 
hey Rob,

u can use an inline style

<input style=&quot;color: #ff0000;&quot; type=&quot;text&quot; .../>

is that what u mean? -There are only 10 types of people in the world, those who understand binary and those who don't-

-pete
 
Sorry, I wasn't quite clear, I needed to be able to make it variable per box (via server side scripting and variables)... so yes, the inline method was exactly what I needed.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top