adjusting textbox height

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ddtpmyra
    Contributor
    • Jun 2008
    • 333

    adjusting textbox height

    Im trying to adjust the height of my text box and even I put height=100 still it display as regular text box. How can I make it larger?

    Code:
    <input type="text" name="description"  
    size="80" height="100" >
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    Hi.

    Seeing as this is in no way related to PHP, I am gong to move this over to the HTML/CSS forum.

    Please try to post your questions in the appropriate forums.

    Thanks
    MODERATOR

    Comment

    • Atli
      Recognized Expert Expert
      • Nov 2006
      • 5062

      #3
      Have you considered the <textarea> element?

      Or, if you want to use a normal textbox, you could try setting the CSS style, rather then use the ancient "height" attribute.

      Like:
      [code=css]<input type="text" style="height: 100px;" />[/code]
      The best way would of course be to include this in an external CSS stylesheet, but that is hardly worth creating one if you don't already use them.

      Note that this will not add more lines to the box, it will only stretch the height around that single line. If you need multiple lines, use <textarea>

      Comment

      • ddtpmyra
        Contributor
        • Jun 2008
        • 333

        #4
        this is a code under my my php script its not a html file

        Comment

        • acoder
          Recognized Expert MVP
          • Nov 2006
          • 16032

          #5
          Yes, but the generated code is HTML.

          Comment

          • Atli
            Recognized Expert Expert
            • Nov 2006
            • 5062

            #6
            Originally posted by ddtpmyra
            this is a code under my my php script its not a html file
            The first thing any PHP tutorial teaches is that PHP is usually used to generate HTML. Even tho your HTML is within a PHP file, it is still HTML and can therefor be used just as you would use it in a HTML file.

            Comment

            • ddtpmyra
              Contributor
              • Jun 2008
              • 333

              #7
              thanks for the information Atli

              Comment

              • ddtpmyra
                Contributor
                • Jun 2008
                • 333

                #8
                Here's what I did and It work as I expected.

                <textarea name="descripti on" rows="5" cols="40"></textarea>

                Comment

                Working...