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 5 of 5
  1. #1
    New Coder
    Join Date
    Jan 2003
    Location
    1st floor, 3rd door on the right side
    Posts
    77
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question Get rid of the scroll bar on a short page.

    Is there a tag to get rid of the unutilized vertical scroll bar on a short page (height < window height) ???

    Cheers
    Fred

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    England
    Posts
    172
    Thanks
    0
    Thanked 0 Times in 0 Posts
    In the body tag, put: style="overflow-y:hidden"

    Note: Only works in some browsers including IE 6+. Anything older than IE 5 will make both y and x scroll bars invisible.
    \o/

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    The Netherlands
    Posts
    217
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You can use overflow: -moz-scrollbars-horizontal for Mozilla.

  • #4
    Regular Coder
    Join Date
    Dec 2002
    Location
    UK
    Posts
    180
    Thanks
    0
    Thanked 0 Times in 0 Posts

    simple

    I know it works in IE

    <body scroll="no">

    sorry, not sure about the horizontal, the above gets rid of the vertical

  • #5
    c q
    c q is offline
    Regular Coder
    Join Date
    Jun 2002
    Location
    Mumbai, India
    Posts
    173
    Thanks
    0
    Thanked 0 Times in 0 Posts
    wow!!! that works like magic ! thanx bfsog, coz I too was looking fr the exact same thing !
    It's a new world. It's a new day.
    www.nehasaxena.com : : www.kohimaorphanage.org


  •  

    Posting Permissions

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