Results 1 to 2 of 2

Thread: Adjusting text box size using CSS?

  1. #1
    Join Date
    Feb 2005
    Posts
    54
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Adjusting text box size using CSS?

    Howdy all,

    Is it possible to control the size of a text box (like the example below) via CSS?

    Code:
    <input type="text" id="tb1" name="tb1" size="20" value="Hello">
    For example, can I set the size of a textbox to (i.e.) 50 using a class?

    Let me know if I'm not being clear...

    I appreciate any assistance with this,

    - I

  2. #2
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Actually I don't think you can control the size but only the width. just place this:

    Code:
    .input {
    width: 100px;
    }

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
  •