Form input controls and height in percent?

Can a text input have a percentage height value?
I’ve been able to do it with width, but not height. :confused:

(i.e. -


input [type="text"]{width:80%;height:50%;}

try to remove the space between input and “[” so it becomes:


Works fine for me…

Using FF 3.0?

%'s height will base themself upon the parent. So if the parent of the input has a heigght of like 500px then yes percentage heights will work.

That’s what it was then. I set the parent element’s height. It works now. :slight_smile:

Thanks guys.

Your welcome :).