1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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