Results 1 to 2 of 2

Thread: input tag setting the width and height

  1. #1
    Join Date
    Apr 2006

    Question input tag setting the width and height

    how do you set the width and height of a input tag? at the minute i have:
    HTML Code:
    <input type"text" size="130" name="commentbox" />
    and because this is size 130 i want this to be a nice rectangle shape and not one long line? can any help?

  2. #2
    Join Date
    Jan 2005
    Frankfort, KY, USA
    You can do it with CSS styling within the input tag:
    <input type"text" name="commentbox" style="width: ###px; height: ###px;"/>
    For more information on styling form elements, consult http://www.sitepoint.com/article/style-web-forms-css.

    * My screen resolution is set at 1680x1050
    * I'm accessing your site through a T1 line
    * I'm probably viewing it using Firefox (unless browser is specified)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Recent Articles