Forum Moderators: open

Message Too Old, No Replies

Textarea in Firefox

2 rows instead of 1

         

Civichunter

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

10+ Year Member



<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?

encyclo

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

WebmasterWorld Senior Member 10+ Year Member



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...

Civichunter

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

10+ Year Member



thanks alot.
So FF DOES have problems too... :)

Aapo Laitinen

10:40 am on Aug 27, 2005 (gmt 0)

10+ Year Member



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?