"...Remember being a youngster, mom or dad telling you "close the door"? Well the same applies to HTML ...."

Go Back   Webmaster Forums > Code Forum > CSS Forum

Reply
 
Thread Tools Rate this Webmaster Discussion
Old 08-18-2009, 09:17 PM   #1
newbie009
New Member
 
Join Date: Aug 2009
Webmaster Discussions: 1
Rep Power: 7
newbie009 is on a distinguished road
How can I disable horizontal scroll in textbox for FireFox?

How can I disable horizontal scroll in textbox for FireFox?

Right now 1 textbox has vertical scroll and other textbox has horizontal scroll.
It only looks like this on FireFox but it looks ugly.
http://jumbofiles.com/example.gif

I used this code but it only worked for IE not FireFox:
style="overflow: scroll; overflow-y: scroll; overflow-x: hidden; overflow:-moz-scrollbars-vertical;"

Basically I want only vertical scroll.
Is there a code that works for both browsers?


newbie009 is offline   Reply With Quote
Old 08-19-2009, 09:28 AM   #2
jthayne
 
jthayne's Avatar
 
Join Date: Aug 2008
Location: Texas
Webmaster Discussions: 501
Rep Power: 21
jthayne is the hardest working person in the biz.jthayne is the hardest working person in the biz.jthayne is the hardest working person in the biz.jthayne is the hardest working person in the biz.
Re: How can I disable horizontal scroll in textbox for FireFox?

The problem is that Firefox does not automatically wrap long words. You will have to find a way to force wordwrap. I believe it can be done using JavaScript, but I am not sure on the code. I do know how it can be done with PHP though.
__________________
Be sure to click the reputation icon to give rep to the person who helped you.
For web design/development services, check Silentium Designs.
jthayne is offline   Reply With Quote
Reply

Bookmarks

Tags
disable, firefox, horizontal, scroll, textbox

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Webmaster Discussions
Thread Webmaster Discussion Starter Forum Replies Last Post
Firefox not show textbox links Falcon5 HTML Forum 12 06-01-2007 05:13 AM
Horizontal scroll bar fix suvarnashiva CSS Forum 0 11-21-2005 07:16 AM
I need a code for A vertical scroll bar without the horizontal scroll bar CursedBeauty HTML Forum 6 10-02-2004 03:51 AM
Horizontal scroll bar will not work in explorer Oatis HTML Forum 5 04-07-2004 05:35 PM


All times are GMT -5. The time now is 08:58 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.