SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Mad Beach Bum jgsketch's Avatar
    Join Date
    Aug 2002
    Location
    FL
    Posts
    825
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Text box height problems

    Hello,
    Just was wondering, how can you change the text box height? Such as on this page, the search text box is smaller than normal. How can I do this. Thanks for any help.

    Jeremy
    Last edited by jgsketch; Sep 29, 2002 at 10:49.

  2. #2
    SitePoint Wizard
    Join Date
    Jul 2001
    Location
    The Netherlands
    Posts
    2,617
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Add this to your textbox:

    Code:
    style="font-size: 8px;"
    Setting a larger font-size for a textbox will make it higher .

  3. #3
    SitePoint Wizard Bill Posters's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    As Mark. T points out, the solution lays in CSS.

    However, you could always leave the font-size alone (or set it independantly to whatever you want) and actually set dimensions for the text field itself
    This would be a more direct (read: correct) method that doesn't tie you to a particular font-size.

    Code:
    .textfield {
    height: 15px;
    width: 200px;
    }
    
    ...
    
    <input type="text" class="textfield" ...
    New Plastic Arts: Visual Communication | DesignateOnline

    Mate went to NY and all he got me was this lousy signature


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
  •