Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    Senior Coder
    Join Date
    Aug 2002
    Location
    Kansas City, Kansas
    Posts
    1,518
    Thanks
    0
    Thanked 2 Times in 2 Posts

    getting rid of the horizontal scrollbar

    is there any way to get rid of a horizontal scroll bar in a text box?

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    FL, USA
    Posts
    734
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    CYWebmaster.com - See why we dot com!!
    ACJavascripts.com - Cut & Paste Javascripts!
    SimplyProgram.com - Personal Blog

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    Beyond Lament
    Posts
    424
    Thanks
    0
    Thanked 0 Times in 0 Posts

    <TEXTAREA STYLE="overflow: hidden;">
    Quíet Storm Designs ~ Art is not what you see, but what you make others see.
    · the Storms· || ·Ultraviolent Winter· || ·Was Einstein Wrong?· || ·It´s About Time!·

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    FL, USA
    Posts
    734
    Thanks
    0
    Thanked 0 Times in 0 Posts
    MAN,, i totaly forgot bout that one,,, LOL
    CYWebmaster.com - See why we dot com!!
    ACJavascripts.com - Cut & Paste Javascripts!
    SimplyProgram.com - Personal Blog

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Posts
    166
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.


    <html>
    <head><title>Example</title>
    </head>
    <body>
    <div align="center"
    <h3>Example</h3><hr>
    <form>
    <textarea style="overflow: hidden;" rows="20" cols="40"></textarea>
    </form>
    </div>
    </body>
    </html>

  • #6
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    No one should be concearned about Netscrap. !!

    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.

    Code:
    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'
    Code:
    <body scroll="auto">
    Omnis mico antequam dominus Spookster!

  • #7
    Senior Coder
    Join Date
    Aug 2002
    Location
    Kansas City, Kansas
    Posts
    1,518
    Thanks
    0
    Thanked 2 Times in 2 Posts
    thx alot everyone

  • #8
    Senior Coder
    Join Date
    Aug 2002
    Location
    Kansas City, Kansas
    Posts
    1,518
    Thanks
    0
    Thanked 2 Times in 2 Posts
    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.

  • #9
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    Originally posted by Mhtml
    No one should be concearned about Netscrap. !!
    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:
    http://bugzilla.mozilla.org/show_bug.cgi?id=175896

    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.

  • #10
    Regular Coder
    Join Date
    Jun 2002
    Posts
    166
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Antoniohawk

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

    jkd
    ...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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •