#4: Forcing Scrollbars: Eliminating “Horizontal Jumps”

In this screencast I talk about how to force vertical scrollbars onto websites. Without doing this, pages with centered content can appear to "jump" to the left or right when going from a page that needs to vertically scroll to one that does not (and visa versa). I cover two different major techniques for doing this, since they both have their advantages and disadvantages between different browsers.

Links from video:

Comments

  1. User Avatar
    Todd
    Permalink to comment#

    It’s nice to look through your screencast archives and come across something really simple but also something that has confused me for a long time. I knew this was possible but just couldn’t for life of me work out how it was done. Thanks

  2. User Avatar
    Tav
    Permalink to comment#

    Thank you very much ! Good to know those tips. Greetings from Romania

  3. User Avatar
    YING WAN
    Permalink to comment#

    Thank you, it’s really a good video. But I’m wondering is it really a big deal for the little jump of the content =P

Submit a Comment

Posting Code

You may write comments in Markdown. This makes code easy to post, as you can write inline code like `<div>this</div>` or multiline blocks of code in triple backtick fences (```) with double new lines before and after.

Code of Conduct

Absolutely anyone is welcome to submit a comment here. But not all comments will be posted. Think of it like writing a letter to the editor. All submitted comments will be read, but not all published. Published comments will be on-topic, helpful, and further the discussion or debate.

Want to tell us something privately?

Feel free to use our contact form. That's a great place to let us know about typos or anything off-topic.

icon-anchoricon-closeicon-emailicon-linkicon-logo-staricon-menuicon-nav-guideicon-searchicon-staricon-tag