WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Content "shifts" when clicking between blog and pages (6 posts)

  1. webhound
    Member
    Posted 8 years ago #

    I'm getting a site set up at Gowin Photography. I'm using the Ambiru Dark 1.5 theme (slightly hacked). When I view any of the pages, the site works fine. When I view the blog (which is listed as "Portfolio" in the links), the page shifts 8 pixels to the left.

    I've tried applying some other themes and observe the same shifting behavior with K2, LivingOS Alpha 1, and KKP Light 0.5. The shifting does not occur with the WP Default 1.5, Softened Cells V2, or Spring 0.3beta templates.

    Any ideas?

  2. moshu
    Member
    Posted 8 years ago #

    Just a wild guess - since the link you gave goes nowhere.

    Isn't it because some pages are shorter than others and on the shorter pages there is no vertical scrollbar? They shift to the right, while the longer ones seem to shift to the left :)

  3. webhound
    Member
    Posted 8 years ago #

    Link--my bad!

    Here's the correct address:

    http://www.gowinphotography.com/index.php

  4. Doodlebee
    Member
    Posted 8 years ago #

    Thta's exactly what moshu said. Your content jumps to the left because some pages have more content than others. When ther'es more content, the scrollbar appears, and there's a shift of the page to the left.

    Add this to your CSS:

    html {
    height:100%
    margin-bottom:1px
    }

    That'll put a permanent scrollbar on all of your pages, and the shift will go away.

  5. webhound
    Member
    Posted 8 years ago #

    Brilliant--that did the trick.

    On a technical note, I added semicolons (;) at the end of each line in doodlebee's code sample above. Just mentioning it in case others stumble onto this.

    Thanks!

  6. Doodlebee
    Member
    Posted 8 years ago #

    whoops! Brainfart there - thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.