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 4 of 4
  1. #1
    New Coder
    Join Date
    Jul 2011
    Posts
    20
    Thanks
    2
    Thanked 0 Times in 0 Posts

    My website container moves like 20px left, Please Help.

    ty for help.
    Last edited by mefarsem; 07-22-2011 at 04:16 PM.

  • #2
    Regular Coder
    Join Date
    Aug 2006
    Location
    Cardiff, UK
    Posts
    141
    Thanks
    15
    Thanked 2 Times in 2 Posts
    You'll need to post samples of the HTML and CSS too, before anyone's going to have any idea about why that might be happening.
    If anyone asks my boss, this counts as work, okay?

  • #3
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,338
    Thanks
    5
    Thanked 363 Times in 360 Posts
    Its moving because the scroll bar appears and takes up 16px or whatever the exact width is and so moving the page content over by that amount. You can set every page to have a scrollbar regardless of how much content, or you can just leave it like it is.

    html {overflow-y: scroll;}
    Teed

  • Users who have thanked teedoff for this post:

    mefarsem (07-22-2011)

  • #4
    New Coder
    Join Date
    Jul 2011
    Posts
    20
    Thanks
    2
    Thanked 0 Times in 0 Posts
    thank you very much


  •  

    Posting Permissions

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