472,989 Members | 2,969 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

adjusting textbox height

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

Like:
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
ddtpmyra
333 100+
this is a code under my my php script its not a html file
Oct 6 '08 #4
acoder
16,027 Expert Mod 8TB
Yes, but the generated code is HTML.
Oct 6 '08 #5
Atli
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
ddtpmyra
333 100+
thanks for the information Atli
Oct 7 '08 #7
ddtpmyra
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

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

Similar topics

1
by: Phil Stanton | last post by:
I am trying to create a text box in Word the same height as one on a report and then fill it with text. I can "read" the position of the text box from the report OK and create a text box in Word...
2
by: Tamir Khason | last post by:
I want to resize my textbox base on the text in it. Ways: 1) MeasureText - quite wrong 2) Detect VScroll - BUT HOW? 3)..... Please advice -- Tamir Khason
2
by: MATT | last post by:
Is there any way to get a combobox to be the same height as a textbox? The combo defaults to 21px and text defaults to 20... and I see no way to change either one to match the other. Thanks, ...
3
by: crosser | last post by:
Hi, I want to adjust button height based on label text. Normally I have standard height because label text has one row, but the text can change in runtime. I want to adjust height of the button...
1
by: tshad | last post by:
I have 2 objects - one an aspx textbox object and one an html Input object: <asp:TextBox ID="UserName" CssClass="top-links" style="height:10px" Columns="12" runat="server"/> <input...
1
by: =?Utf-8?B?RGVkZ2U=?= | last post by:
Hi: The height of asp:textbox and asp:labels seems to be larger than with 2003. I have tried setting margins and padding to zero, but there remains a gap between the bottom of the text line and...
0
by: aspvan | last post by:
Does anybody know why when i change the form <!DOCTYPE to xhtml the height for textbox and button do not match anymore in the browser but it works fine when i'm using <!DOCTYPE HTML PUBLIC...
1
by: postman | last post by:
In Access 2007, I'm using bound textboxes on a continuous form to display the contents of each record's memo field. Is there a way to automatically adjust the textbox height to fit the contents? ...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.