471,881 Members | 1,286 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,881 software developers and data experts.

textarea scrollbar in firefox

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
8 13854
drhowarddrfine
7,435 Expert 4TB
I don't see that at all.
You have rows and cols listed twice.
Aug 9 '07 #2
honey99
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
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
7,435 Expert 4TB
I still don't see the problem either.
Aug 10 '07 #5
honey99
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
oslego
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
7,435 Expert 4TB
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
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.

Similar topics

2 posts views Thread by Mike Labman | last post: by
4 posts views Thread by Simon | last post: by
2 posts views Thread by Mike | last post: by
3 posts views Thread by yawnmoth | last post: by
2 posts views Thread by musicmouse | last post: by
reply views Thread by Fabio R. | last post: by
2 posts views Thread by Mike Brophy | last post: by
reply views Thread by =?Utf-8?B?cGF0cmlja2RyZA==?= | last post: by
reply views Thread by YellowAndGreen | last post: by
reply views Thread by zermasroor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.