Can a text input have a percentage height value?
I’ve been able to do it with width, but not height.
(i.e. -
css:
input [type="text"]{width:80%;height:50%;}
Can a text input have a percentage height value?
I’ve been able to do it with width, but not height.
(i.e. -
css:
input [type="text"]{width:80%;height:50%;}
try to remove the space between input and “[” so it becomes:
input[type="text"]{width:80%;height:50%;}
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.
Thanks guys.
Your welcome :).