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 8 of 8
  1. #1
    New to the CF scene
    Join Date
    May 2011
    Location
    Bergen, Norway
    Posts
    9
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Page moving when the content fills the page

    Hello,

    I've got som problems with my page. I have a css file that goes with my pages. And my pages work perfectly until i fill the whole page up with content, then the whole page (who is centered) moves just some few pixels ( ca. 5-10 to the left) and the others, that there is just some few lines of content on is normal.

    I know that it is hard to imagine it without seeing it or look at the code, but has anyone experienced something familiar to this?

  • #2
    Senior Coder ckeyrouz's Avatar
    Join Date
    Jun 2009
    Location
    Montreal, Canada
    Posts
    1,044
    Thanks
    5
    Thanked 179 Times in 179 Posts
    As you have said, there could be 100s of reasons to a problem displaying something in CSS and HTML.

    At list a link to the site might help us look at the problem.
    Software and cathedrals are much the same - first we build them, then we pray.

  • #3
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,335
    Thanks
    5
    Thanked 363 Times in 360 Posts
    Add:

    Code:
    html {
    	overflow:scroll;
    }
    to your css. This will force the browser to display a scrollbar no matter what length content you have in your pages.
    Teed

  • Users who have thanked teedoff for this post:

    agent00niks (03-13-2012)

  • #4
    Senior Coder DanInMa's Avatar
    Join Date
    Nov 2010
    Location
    Salem,Ma
    Posts
    1,577
    Thanks
    13
    Thanked 248 Times in 248 Posts
    Quote Originally Posted by agent00niks View Post
    Hello,

    I've got som problems with my page. I have a css file that goes with my pages. And my pages work perfectly until i fill the whole page up with content, then the whole page (who is centered) moves just some few pixels ( ca. 5-10 to the left) and the others, that there is just some few lines of content on is normal.

    I know that it is hard to imagine it without seeing it or look at the code, but has anyone experienced something familiar to this?
    your gonan hve to show some css and html or provide a link. there could be many causes including padding marging, borders, etc...

    you question is the equivalent to walking up to a mechanic , imitate a funny noise your car is making , and asking if he can fix it .

    there are just too many thigns that it could/might/maybe be.

  • #5
    New to the CF scene
    Join Date
    May 2011
    Location
    Bergen, Norway
    Posts
    9
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by teedoff View Post
    Add:

    Code:
    html {
    	overflow:scroll;
    }
    to your css. This will force the browser to display a scrollbar no matter what length content you have in your pages.
    Omg! That did it :-D I've really struggled with that problem, and that line of code was all that was missing...

    You are awesome teedoff! You just made my day ;-)

  • #6
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,335
    Thanks
    5
    Thanked 363 Times in 360 Posts
    Quote Originally Posted by agent00niks View Post
    Omg! That did it :-D I've really struggled with that problem, and that line of code was all that was missing...

    You are awesome teedoff! You just made my day ;-)
    It was an educated guess(I've experienced the same issue), but as Dan and others said, a link to your site or your full code is usually needed for anyone to help. Glad you got it sorted out!
    Teed

  • #7
    Senior Coder DanInMa's Avatar
    Join Date
    Nov 2010
    Location
    Salem,Ma
    Posts
    1,577
    Thanks
    13
    Thanked 248 Times in 248 Posts
    nice one teed

  • #8
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,335
    Thanks
    5
    Thanked 363 Times in 360 Posts
    Quote Originally Posted by DanInMa View Post
    nice one teed
    lol once you struggle with something like this, and I did for like 3 days!! lol you never forget the "fix"! Thanks.
    Teed


  •  

    Posting Permissions

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