By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
462,148 Members | 836 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 462,148 IT Pros & Developers. It's quick & easy.

textarea scrollbar in firefox

P: 46
Hi!
i have a problem with textarea scrollbar in firefox.In FF it is taking horizantal scrollbar by default??but in IE vertical scrollbar is displaying correctly..I want vertical scrollbar in FF and how to avoid horizantal scrollbar in FF??check my code plz....

Expand|Select|Wrap|Line Numbers
  1. <TEXTAREA Name="text" rows=4 Cols="70"rows=4 Cols="70" onfocus="focuscolor(this)" onblur='javascript:blurcolor(this);' class="input" wrap="VIRTUAL">
regards
Aug 9 '07 #1
Share this Question
Share on Google+
8 Replies

drhowarddrfine
Expert 5K+
P: 7,435
I don't see that at all.
You have rows and cols listed twice.
Aug 9 '07 #2

P: 46
I don't see that at all.
You have rows and cols listed twice.
thank u...but eventhough i removed duplicate rows n cols.....i have still that problem with wrapping text in mozilla...in IE wrapping is working...and i want to remove the default horizantal scrollbar in firefox and have a vertical scrollbar to be displayed in firefox...............

Expand|Select|Wrap|Line Numbers
  1. <TEXTAREA Name="notes" rows=4 Cols="70" onfocus="focuscolor(this)" onblur='javascript:blurcolor(this);' class="input" wrap="VIRTUAL">
Aug 10 '07 #3

P: 3
thank u...but eventhough i removed duplicate rows n cols.....i have still that problem with wrapping text in mozilla...in IE wrapping is working...and i want to remove the default horizantal scrollbar in firefox and have a vertical scrollbar to be displayed in firefox...............

Expand|Select|Wrap|Line Numbers
  1. <TEXTAREA Name="notes" rows=4 Cols="70" onfocus="focuscolor(this)" onblur='javascript:blurcolor(this);' class="input" wrap="VIRTUAL">

I wrote it like this and it's working. I am not facing any problem. if u have problem I think just chk 'onFocus' and 'onBlur' maybe u r not wrote them correctly or something else


<TEXTAREA Name="notes" Cols="70" rows="4" wrap="virtual" class="input" onfocus="focuscolor(this)" onblur='javascript:blurcolor(this);'></TEXTAREA>
Aug 10 '07 #4

drhowarddrfine
Expert 5K+
P: 7,435
I still don't see the problem either.
Aug 10 '07 #5

P: 46
I still don't see the problem either.
what i want is to remove the default horizantal scrollbar for firefox.I want the vertical scrollbar to be displayed in the firefox textarea...can u give me the solution
Aug 10 '07 #6

P: 1
I found this forum very useful at times and I believe I should share some knowledge with you as well.

The problem is fixed in FF by correctly declaring the order of your rows and cols values.

You need to declare rows=" " first and then cols=" "

More info on the textarea tag: http://www.w3schools.com/tags/tag_textarea.asp
Dec 14 '07 #7

drhowarddrfine
Expert 5K+
P: 7,435
I don't think that makes a difference, and it shouldn't. I don't recall this thread but noticed he is using the 'wrap' attribute which is proprietary to IE and isn't a standard.
Dec 14 '07 #8

P: 1
Hi. I think that happens when you write a veeeeery long string. In example, when you want to test your fields, maybe, you enter a lot of chars:

akjshdakljshdkalsdhfoiuahlkew4rfhawiorhlaiweurhlia wevurhlia

when this string is larger than the textarea's width, FF has no option but scroll horizontally....

But if you separate it, like

laksjdalksj laksjdlkasj jlaksjdlaks akjsdkak lak kajska jha

Firefox will scroll as It shoulds...

Hope to be helpfull.

PD: Sorry for my english.
Aug 1 '08 #9

Post your reply

Sign in to post your reply or Sign up for a free account.