tags:

views:

77

answers:

4

Hi,

What sets the height of the textbox, line height or font size?

+4  A: 

None

its

height

attribute

<input type="text" class="hei" id="txt1" />
<style>
.hei
{
   height: 40px;
}
</style>

font-size: Sets or retrieves a value that indicates the font size used for text in the object.

line-height: Sets or retrieves the distance between lines in the object

rahul
A: 
input {
    height: 100px;
}
RaYell
A: 

the css option height?

Sven Hecht
A: 

If it's <input type="text" /> then it's a combination of font-size, line-height and any explicitly declared height attributes.

For <textarea> it's an explicit height declaration, though I think it's expressed as rows rather than height.

David Thomas
<textarea rows="20" style="height:300px"> will result in a 300 pixel high box. Rows get overriden by CSS.
enkrs
Guess I should've experimented to work that out, huh? Thanks, enkrs, live and learn... =)
David Thomas