PDA

View Full Version : Can I change the size of a <input> window?


Cheeseboy
11-19-2006, 12:36 AM
Hi all,
I have this input code:<form id="fullex"><input id="cent" type="text" size="15" name="user" /></form>
I was wondering if i could change the height of this input so that the window isnt has tall as the default size.

THanks!!!:thumbsup:

vinyl-junkie
11-19-2006, 02:10 AM
Just apply CSS styling to it. As an example:

<form id="fullex">
<input style="height: 50px;"
id="cent"
type="text"
size="15"
name="user" />
</form>

Arbitrator
11-19-2006, 11:31 AM
You can also change the size indirectly by changing the font size.

By the way, the value of the ID and name attributes must be identical since the ID attribute is simply the modern form of the name attribute. Thus the value of both should either be cent or user. This probably means that you can also get rid of one or the other.

Cheeseboy
11-19-2006, 01:33 PM
Great, that worked thanks guys!