Results 1 to 2 of 2

Thread: Please help me finish my endless search!

  1. #1
    Join Date
    Mar 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Please help me finish my endless search!

    Hi there, looking for a simple bit of code to load my page with the horizontal scrollbar set to 50% (in the middle of the page). I can find code to do all kinds of complicated things like scroll the page and , but all I want to do is set the scrollbar to the center and remove the horizontal scrollbar from the screen.

    I have completely made a website, but due to some margin issues, the display on 800x600 is not perfect. Problem? My boss uses 800x600 so it needs to look decent on that screen res.

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Follow the technique here (view source to look @ code) to get the page to be centered within the viewport.

    You probbaly don't need to concern youself with the vertical positioning, so ignore the top/bottom margins as you see fit.

Bookmarks

Posting Permissions

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