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

Displaying A Text Field In Red 2

Status
Not open for further replies.

FontanaS

Programmer
May 1, 2001
357
US
I have a text field that under certain circumstances should be displayed in red and in bold.

I have tried putting in the code color="red" in two places, but it does not display in red or is it in bold.

The code is -

<td align="center"><p style="line-height: 100%; margin-top: 0; margin-bottom: 0"><b><font face="Tahoma" color="red" size="1"><input color="red" size="10" maxlength="25" name="RpdSpendingPlannedDate<%=lvCounting%>" value="<%=RsSort("RpdSpendingPlannedDate")%>"></font></b></p></td>

Any suggestions? THANKS!
 
Well, you're missing quite a few things in your HTML. For one, you're going to need to define what kind of field the input field is. My assumption, is that it is a textbox

Code:
<input
 type=text
 value=yourValue
 size=10
 style=color:red;font-weight:bold
 >

It's probably better to put your style into CSS. But if it's only one textbox, this should be fine.

Use your resources, you're on the internet!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top