CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2002
    Location
    PA
    Posts
    36

    format inside a text box?

    hello folks,

    i've got a standard html text box...

    and when the user types something in a standard html text box the text is left justified by default.

    is there any way to right justify it?

    should be an easy one for one or two of you.

  2. #2
    Join Date
    Jan 2002
    Location
    Helsinki, Finland
    Posts
    99
    <input type="text" style="text-align:right;" value="Aligned to Right" />

    Info : http://www.w3.org/TR/CSS1#text-align
    Tutorial : http://www.w3schools.com/css/pr_text_text-align.asp
    Zvona - First aid for client-side web design

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured