Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I change the height of a field form? 2

Status
Not open for further replies.

melstef

Programmer
Feb 19, 2003
69
CA
I have a form but I would like to change the height of the text field.
thank you for your time
 
<input type=&quot;text&quot; style=&quot;height:95px; width:250px;&quot; name=&quot;mytextbox&quot; value=&quot;my text&quot;><br>

or set the style in your CSS.

Hope this helps,
Erik

<-- My sport: Boomerang throwing !!
!! Many Happy Returns !! -->
 
...or, if you want to change all inputs, globally:

<style>
input {width:90px; height: 25px; background-color:black; color:lime; font:bold italic 14px tahoma}
</style>
</head>
<body>
<input type=&quot;button&quot; value=&quot;Click&quot;>
<input type=&quot;text&quot; name=&quot;Phone&quot;>
 
thank you it works perfertly..
One more thing, I have a double list combo and it is not input type but option... I would like to have the same dimensions for the box as for the input type... Could you help me?

I changed the css file but is it possible to make the submit button a different width than the others,
thanks
 
Well, try the same thing:

<style>
select {width:90px; height:25px}
</style>
</head>
<body>
<select>
<option>This Option</option>
</select>

or inline:

<select style=&quot;width:90px; height:25px&quot;>
<option>This Option</option>
</select>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top