View Full Version : getting rid of the horizontal scrollbar

12-24-2002, 12:03 AM
is there any way to get rid of a horizontal scroll bar in a text box?

12-24-2002, 12:10 AM
I am asuming you mean textarea, b/c textboxs don't have scrollbars.. Um, no i don't think you can get rid of them,, you could though make the color of the scrollbar the color of the background and it would be invisible.

Quiet Storm
12-24-2002, 12:15 AM
<TEXTAREA STYLE="overflow: hidden;">

12-24-2002, 12:17 AM
MAN,, i totaly forgot bout that one,,, LOL :D

12-24-2002, 05:31 AM
If you're concerned about Netscape7:
<TEXTAREA STYLE="overflow: hidden;">

causes a browser crash if the text area is 'overloaded.'

(At least in my version 7.0 - don't know why)

NETSCP caused an invalid page fault in
module GKCONTENT.DLL at 018f:6025969b.

NETSCP caused an invalid page fault in
module GKLAYOUT.DLL at 018f:603cd8ca.

<div align="center"
<textarea style="overflow: hidden;" rows="20" cols="40"></textarea>

12-24-2002, 06:21 AM
No one should be concearned about Netscrap. :D !!

Just thought I'd add to this, you can also use it on your whole page just plug this into your style sheet or inline with the <body> tag.

body {
overflow-x: hidden; /*This will hide the horizontal bar */
overflow-y: scroll; /*Displays the vertical bar */

or the inline...

<body style="overflow-x:hidden">

Or you can use the good ol'

<body scroll="auto">

12-25-2002, 05:19 PM
thx alot everyone

01-01-2003, 12:11 AM
lol i said thx, but i hadnt checked to see if it worked. I have checked now, and i still having problems. Here is the page (http://www.angelfire.com/art2/pssite/test.html).

01-01-2003, 12:52 AM
Originally posted by Mhtml
No one should be concearned about Netscrap. :D !!

Why not? IE is a lackluster browser in every development aspect. Netscape 7 however, based on the powerful Gecko engine, and only makes your life easier by supporting feature-rich W3C standards, as well as other things. Not too many people realize this, but catering to IE is holding web design back. Very true.

Anyway, I just thought it was worth going off topic for a moment to explain the fallacy in your statement.

And Paulette, the closest thing I've heard describing your experience with overflow: hidden on a textare was this:

Netscape 7 was released before that, no? I don't think Mozilla 1.0 would have been released with something like that, and if it was, would have certainly been fixed for the 1.0.1 release NS7 was based on.

01-01-2003, 01:27 AM

<BODY bgColor=#ffffff style="overflow-y:scroll">
in the iframe.htm page will remove the h scrollbar.

...and if it was, would have certainly been fixed for the 1.0.1 release NS7 was based on

Guess it wasn't as the script crashes my browser v7.0 exactly as per described in the link you posted.

At least now I know that there was (is) a known problem with NN7.0

Mhtml's script does away with the problem.