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 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jun 2007
    Location
    N. Ireland
    Posts
    351
    Thanks
    16
    Thanked 4 Times in 4 Posts

    My body is jumping!

    Hi I am using the following:

    Code:
    body {
     width: 768px;
     margin: 5px auto 0;
     padding: 0;
     font: 0.8em Tahoma,Arial,Helvetica,sans-serif;
    }
    to center my content in the middle of the browser window.
    Whenever my content runs longer than the window, a scrollbar appears and shunts the body to the left slightly

    Is there a quick and easy way to correct for this?

    Thanks.

    D.
    Daemonkin.
    If this was helpful, please add to my reputation
    Thousand Sons - Freelance Web Developer - ninetyonedegrees.com

  • #2
    Senior Coder ahallicks's Avatar
    Join Date
    May 2006
    Location
    Lancaster, UK
    Posts
    1,134
    Thanks
    1
    Thanked 57 Times in 55 Posts
    Code:
    html {
    	height: 100.01%;
    }
    Will display the scroll bar all the time to stop this 'jumping effect'. Notice I refrained from any jokes about getting off the trampoline
    "write it for FireFox then hack it for IE."
    Quote Originally Posted by Mhtml View Post
    Domains are like women - all the good ones are taken unless you want one from some foreign country.
    Reputation is your friend

    Development & SEO Tools

  • Users who have thanked ahallicks for this post:

    daemonkin (09-14-2007)

  • #3
    Regular Coder
    Join Date
    Jun 2007
    Location
    N. Ireland
    Posts
    351
    Thanks
    16
    Thanked 4 Times in 4 Posts
    Yes I was waiting for that backlash!
    Will try it.

    D.
    Daemonkin.
    If this was helpful, please add to my reputation
    Thousand Sons - Freelance Web Developer - ninetyonedegrees.com


  •  

    Posting Permissions

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