Grow your CSS skills. Land your dream job.

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?

    Thanks!

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

    this should do it.

    # February 4, 2009 at 11:23 am

    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.

*May or may not contain any actual "CSS" or "Tricks".