Welcome to WebmasterWorld Guest from 3.227.3.146

Forum Moderators: open

Message Too Old, No Replies

Textarea in Firefox

2 rows instead of 1

     
12:39 am on Aug 26, 2005 (gmt 0)

New User

10+ Year Member

joined:Aug 26, 2005
posts:11
votes: 0


<textarea id="Blah" name="Blah" rows="1" cols="30"</textarea>

For the above simple code why does Firefox display 2 rows (after been specified to display 1 only), while IE displays the correctly assigned 1 row?

1:43 am on Aug 26, 2005 (gmt 0)

Senior Member from CA 

WebmasterWorld Senior Member encyclo is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 31, 2003
posts:9074
votes: 6


Welcome to the forums, Civichunter!

Here's your bug: [bugzilla.mozilla.org...]

It's been broken for the last five years, and it's still not ging to get fixed soon. The basic problem is that Mozilla/Firefox leaves a space for the horizontal scrollbar rather than forcing the text to break. Try putting a continuous line of characters into the textarea and once the space is filled, your scrollbar will appear. See especially comment #92 in that Bugzilla entry.

I'm not sure if there is any way around this, I'm afraid...

1:52 am on Aug 26, 2005 (gmt 0)

New User

10+ Year Member

joined:Aug 26, 2005
posts:11
votes: 0


thanks alot.
So FF DOES have problems too... :)
10:40 am on Aug 27, 2005 (gmt 0)

New User

10+ Year Member

joined:Aug 26, 2005
posts:3
votes: 0


Is there a reason why you can't use <input type="text"> if you need a one-line input field? Or was that just an illustrative example?