469,271 Members | 1,431 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,271 developers. It's quick & easy.

adjusting textbox height

333 100+
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?

Expand|Select|Wrap|Line Numbers
  1. <input type="text" name="description"  
  2. size="80" height="100" >
Oct 3 '08 #1
7 40316
5,058 Expert 4TB

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.

Oct 4 '08 #2
5,058 Expert 4TB
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.

Expand|Select|Wrap|Line Numbers
  1. <input type="text" style="height: 100px;" />
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>
Oct 4 '08 #3
333 100+
this is a code under my my php script its not a html file
Oct 6 '08 #4
16,027 Expert Mod 8TB
Yes, but the generated code is HTML.
Oct 6 '08 #5
5,058 Expert 4TB
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.
Oct 6 '08 #6
333 100+
thanks for the information Atli
Oct 7 '08 #7
333 100+
Here's what I did and It work as I expected.

<textarea name="description" rows="5" cols="40"></textarea>
Oct 14 '08 #8

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Tamir Khason | last post: by
3 posts views Thread by crosser | last post: by
1 post views Thread by tshad | last post: by
1 post views Thread by =?Utf-8?B?RGVkZ2U=?= | last post: by
reply views Thread by aspvan | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.