471,892 Members | 1,914 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,892 software developers and data experts.

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 41017
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
reply views Thread by zermasroor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.