The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

No-scroll code. Does it exist?

  • # February 4, 2009 at 8:23 am

    Is there a way to prevent scrolling? I’ve heard of something for IE, but is there a solution for other browsers?


    # February 4, 2009 at 9:17 am
    body {
    height: 100%;
    max-height: 100%;
    overflow: hidden;

    this should do it.

    # February 4, 2009 at 11:23 am

    This reply has been reported for inappropriate content.

    You want to be careful on what you choose not to have scrolling. Is it for anything specific?

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed