Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2004
    Posts
    202

    Unanswered: Changes In Textboxes

    Hi,

    Can anyone tell me how to change the font,color and alignment in a textbox
    from HTML page (ASP)?
    Thanx a lot

  2. #2
    Join Date
    Jun 2003
    Location
    USA
    Posts
    1,032
    Example of a right-aligned textbox:
    <input type="text" value="hi" style="text-align:right">

    White on dark gray readonly:
    <input type="text" name="MyField" size="13" readonly="true" style="color:white; background-color:gray" value="<%= MyField %>">

    Black on light gray readonly:
    <input type="text" name="MyField" size="13" readonly="true" style="background-color:#DDDDDD" value="<%= MyField %>">

    And of course you can put a lot of things into the style="..." part separated by semicolons.

    CSS Examples
    http://www.w3schools.com/css/css_examples.asp
    Last edited by Bullschmidt; 02-17-05 at 05:15.
    J. Paul Schmidt, Freelance Web and Database Developer
    www.Bullschmidt.com
    Access Database Sample, Web Database Sample, ASP Design Tips

  3. #3
    Join Date
    Mar 2004
    Posts
    202
    Hi Bullschmidt,

    Thanx.It works.
    Thanx again

  4. #4
    Join Date
    Jun 2003
    Location
    USA
    Posts
    1,032
    Hi michaelfg81, you're welcome, and glad it worked!
    J. Paul Schmidt, Freelance Web and Database Developer
    www.Bullschmidt.com
    Access Database Sample, Web Database Sample, ASP Design Tips

Posting Permissions

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