Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator cubecolour

    (@numeeja)

    Is it just the longer pages where a browser scrollbar is displayed? If so it is caused by the pages with very little content not needing a scrollbar and the ones with more content to need one.

    Thread Starter carrieduncan

    (@carrieduncan)

    Thanks, numeeja — that’s exactly what’s happening. Is there a simple way to adjust for that?

    Moderator cubecolour

    (@numeeja)

    You can add something to your stylesheet to force a scrollbar on all pages.

    try adding one of these to your stylesheet:

    html {overflow-y: scroll;}

    or

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

    Either should do the trick, but the first is not actually valid css markup so will not validate and the second adds 1px of scroll.

    Thread Starter carrieduncan

    (@carrieduncan)

    Many thanks, numeeja — The second looks great in FF but the screen goes blank for about a half second in IE8 before rendering. The first didn’t work for either browser.

    You’ve got a bunch of code errors, like duplicate head profiles and <body> tags from editing your theme: [Invalid]Markup Validation of 0055ae0.netsolhost.com wordpressLR ?page_id=12 – W3C Markup Validator. Fix the errors and the page should display OK in all browsers. Scroll down in the valdiation report to see line numbers and source code.

    Thread Starter carrieduncan

    (@carrieduncan)

    Back after validation (phew! — 2 more errors and a warning, but I will ask about them in another post) — thank you, thank you, songdogtech both for linking to the validator (I didn’t know where to validate the entire site — had only found CSS validator) and for suggesting it with such neutral tone.

    Thanks again, numeeja — used the second style, and now after validation, the page doesn’t flash blank, though the image does (which isn’t a problem after caching — I likely have another problem to address, there).

    You both rock. Thanks again.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Why do pages shift horizontally?’ is closed to new replies.