Scoll only using bottom 80% using CSS and jQuery

Discussion in 'CSS' started by Philosophaie, Feb 8, 2012.

  1. #1
    I am new to this. Looking to scroll just the bottom 80% of the webpage. The top 20% or 200px is "Fixed". I heard you can use jQuery to make this happen. I would like to know how to do this and how it is incorperated into HTML. This is what I have so far:

    $("div").scroll(function() {
      $("span").text(x+=1);
    });
    Code (markup):
     
    Philosophaie, Feb 8, 2012 IP