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

  1. webhound
    Posted 9 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
    Posted 9 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
    Posted 9 years ago #

    Link--my bad!

    Here's the correct address:


  4. Doodlebee
    Posted 9 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 {

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

  5. webhound
    Posted 9 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.


  6. Doodlebee
    Posted 9 years ago #

    whoops! Brainfart there - thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.