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 4 of 4
  1. #1
    Senior Member Tyler Smith's Avatar
    Join Date
    Oct 2011
    Posts
    115
    Member #
    29767
    Liked
    7 times
    Hello all,

    My page is just about 1200px wide. It will be sufficient width for everything, and I am satisfied with the layout. I want to have the page load and set the scroll bar to be right in the middle of the page. Is this a CSS thing or is this done in JavaScript?

    Also, why is the page so long? The scroll bar shouldn't go that far down. It's not that tall.
    Atlanta Review

  2.  

  3. #2
    WDF Staff m3n0tu18's Avatar
    Join Date
    Jul 2011
    Location
    Devon, UK
    Posts
    1,473
    Member #
    28473
    Liked
    265 times
    If i understand what you are saying you are after a centralised scroll bar for your content. But remove the horizontal and vertical bars from your window.

    This can be done like so.

    Code:
    body
    {
    overflow:hidden;<!--this code hides the scroll bars on the window-->
    }
    #container
    {
    overflow:visible;<!--this code shows the scroll bars within the container div-->
    }
    The reason why your scrollbar is going that far down is because you have a min-height of 800px on your #rightside. Remove this and it will fix the issue.

    Hope this helps

    -M3
    Tyler Smith likes this.
    If you like my comments to your thread please click the LIKE button

    Check out my portfolio: Here!
    View my company Facebook Page
    View my company Website

    <<Plrease ignoer my typo's I have isdexlyia>>

  4. #3
    Senior Member Tyler Smith's Avatar
    Join Date
    Oct 2011
    Posts
    115
    Member #
    29767
    Liked
    7 times
    Thank you for sharing your knowledge!

  5. #4
    WDF Staff m3n0tu18's Avatar
    Join Date
    Jul 2011
    Location
    Devon, UK
    Posts
    1,473
    Member #
    28473
    Liked
    265 times
    Quote Originally Posted by Tyler Smith, post: 223241
    Thank you for sharing your knowledge!
    Welcome thats what we are here for ^^
    If you like my comments to your thread please click the LIKE button

    Check out my portfolio: Here!
    View my company Facebook Page
    View my company Website

    <<Plrease ignoer my typo's I have isdexlyia>>


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 06:43 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com