View Full Version : stop horizontal scrolling in textarea in Firefox 2

10-13-2007, 02:26 PM
I am developing my site in FF and when I type into the text area the text carries on in the one line and does not wrap down onto the next line.

However, it works fine in IE 7. I thought I had the fix with the CSS styling I added, but it does not work. Looking at this forum for example, i presume I am writing into a textarea (using FF and it has a working vertical scrollbar.


.textarea {
overflow: scroll;
overflow-y: scroll;
overflow-x: hidden;

<textarea name="moreinfo" id="moreinfo" cols="45" rows="5" class="textarea"></textarea>

Cheers, Picco

10-13-2007, 10:10 PM
It seems to work for me, even without any CSS at all. Make sure you're not just typing a constant random string (without spaces) into the textarea to test it. If a single word is too long for the textarea, it must get horizontal scrollbars. With your CSS, any REALLY long word is hidden completely.

A great way to test things with a lot of random words: http://www.lipsum.com

10-13-2007, 10:58 PM
Ah....... i WAS using a constant random string to test.

Now it works with normal words :-)

Is there a way to combat this problem if someone DOES enter a constant string?