View Full Version : How to use 2 diff font sizes in form element

01-19-2005, 08:11 PM
Is it possible for me to use two different font sizes within one text field in a form?

My issue is this: I have a text field that displays data from a database, and the time and am/pm status are different form fields. I would like to correctly display the AM/PM status in a smaller font.

My current code:

<input name="txt_time01" type="text" class="fieldcell3" value="<%=(Recordset1.Fields.Item("f_timeio1").Value)%>&nbsp;<%=(Recordset1.Fields.Item("f_timeio1ampm").Value)%>">

Thanks for the help,

01-26-2005, 04:27 PM
Intentional bump.

01-26-2005, 08:10 PM
what about maybe writing an if else statement that determines the time pulled from the data base and if is an am hour then have it add the value of the entity for a subscript am and same for any other hours not falling in that category of course using pm

01-26-2005, 11:52 PM
Well it's not really that complex at all. The AM/PM is already in the database, I simply want to display it in a smaller font.

Example 2 for simplicity:

Pretend the code I posted below is for Firstname and Lastname. I want to display Lastname in a smaller font than Firstname within the same text box. Is it possible at all?