Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Dec 2002
    Location
    NW Iowa
    Posts
    185
    Thanks
    9
    Thanked 0 Times in 0 Posts

    How to use 2 diff font sizes in form element

    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:
    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,
    Matt

  • #2
    Regular Coder
    Join Date
    Dec 2002
    Location
    NW Iowa
    Posts
    185
    Thanks
    9
    Thanked 0 Times in 0 Posts
    Intentional bump.

  • #3
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    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

  • #4
    Regular Coder
    Join Date
    Dec 2002
    Location
    NW Iowa
    Posts
    185
    Thanks
    9
    Thanked 0 Times in 0 Posts
    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?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •