Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 8 of 8
  1. #1
    Junior Member
    Join Date
    Nov 2006
    Posts
    4
    Member #
    14247
    I'd like to set it so that the scroll bar is always displayed on the right side of the page, even if it's not needed. Does anyone know the tag to do that, or some other trick to pull it off?

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,693
    Member #
    5580
    Liked
    717 times
    How about make the body height
    taller than the browser screen ...

    <html>
    <head>
    <style>
    body {
    height: 1000px;
    }
    </style>
    </head>
    <body>
    test
    </body>
    </html>


  4. #3
    Junior Member
    Join Date
    Nov 2006
    Posts
    4
    Member #
    14247
    It didn't seem to like that much. But I also don't want them to be able to scroll down to nothing if possible. What I'm hoping for is something kind of like on some popup windows, where you can see the scrollbar, but it's greyed out. Or in an IFRAME, you can set there to always be a scrollbar, even if it can't be used.

  5. #4
    Senior Member solidgold's Avatar
    Join Date
    Jun 2006
    Posts
    766
    Member #
    13373
    you need to make it so that the page is exactly the same length as the browser (if you mean what i think you do) and all level at the bottom, this way the scroll bar will still be there (in IE) but it wont be usable, the page wont scroll.

  6. #5
    Junior Member
    Join Date
    Nov 2006
    Posts
    4
    Member #
    14247
    How can I accomplish that?

  7. #6
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,693
    Member #
    5580
    Liked
    717 times
    You'll have to use some Javascripting to test for the
    user's browser height? All in all, what exactly is the
    purpose you are going for?


  8. #7
    Junior Member
    Join Date
    Nov 2006
    Posts
    4
    Member #
    14247
    Basically, I've got some pages that are longer than the window, so they need to be able to scroll. Other pages though do not need a scroll bar. That's fine, except, when going from a page that needs the scroll bar to one that doesn't need it, it quickly causes the whole page to shift left or right just slightly. It's something little that makes navigation look bad. So I figured I'd just attach a scrollbar to all the pages regardless of whether they need them.

    How would I go about doing all that with Javascript?

  9. #8
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    I'm relatively certain you can achieve the desired effect by setting the CSS property [minicode]overflow-y: scroll;[/minicode] on the [minicode]body[/minicode] element. Other solutions in this article.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:52 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com