Results 1 to 3 of 3

Thread: Text Boxes

  1. #1
    Join Date
    Aug 2005
    Posts
    200
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Text Boxes

    I want the text in the text box to be highlighted when they tab to it. is there a way to do it or do they have to highlight and then start typing. And how do you center buttons? JF
    Last edited by Freeman; 10-25-2005 at 03:50 PM.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    The easiest way is to use CSS (pseudo class) to apply the highlighting whenever the user sets focus to the form element:

    Code:
    <style type="text/css">
    input:focus, textarea:focus{
    background-color: lightyellow;
    }
    </style>
    This technique currently does not work in IE6, however.

  3. #3
    Join Date
    Aug 2005
    Posts
    200
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    If I have multiple text boxs inserted on page and I put this on the top of the page will all the text boxs will be highlighted when the change their focus to them?
    Last edited by Freeman; 10-27-2005 at 02:09 PM. Reason: Badly worded

Bookmarks

Posting Permissions

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