Align a numeric field to the right

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rmurgia
    New Member
    • May 2008
    • 63

    Align a numeric field to the right

    Am I missing something? I thought to align a numeric field to the right, it was done as follows:

    <input name="MthActSvc Rev1" id="MthActSvcRe v1" align="right" type="text" value="<%=dbMth ActSvcRev%>"

    The number continues to align to the left instead of the right:

    100
    ----------------
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    It's probably browser specific. Have you tested in different browsers?

    Jared

    Comment

    • rmurgia
      New Member
      • May 2008
      • 63

      #3
      Originally posted by jhardman
      It's probably browser specific. Have you tested in different browsers?

      Jared
      I'll try another browser, but from what you are saying, the code is correct ? I thought possibly I was missing something, like a justify tag or something.

      Thanks,
      Ralph

      Comment

      • jhardman
        Recognized Expert Specialist
        • Jan 2007
        • 3405

        #4
        Originally posted by rmurgia
        I'll try another browser, but from what you are saying, the code is correct ? I thought possibly I was missing something, like a justify tag or something.

        Thanks,
        Ralph
        It looks right to me, I suggested trying a diff browser because it is the kind of thing that some browsers would support, but others don't.

        Jared

        Comment

        • FredrikS
          New Member
          • Sep 2009
          • 4

          #5
          Try style="text-align:right;" instead, perhaps.

          Oh, and your tag is missing a > at the end but that's maybe just here and not in your actual code. It may or may not be relevant.

          Comment

          Working...