css – Custom Scrolling for DIV / Section-ThrowExceptions

Exception or error:

This is the antiscroll which I use

on my website I have middle section with code:

<section id="middleSection">  </section>

And with CSS:


    padding: 0;
    position: absolute;
    top: 68px;
    bottom: 100px;
    left: 150px;
    right: 200px;


If I use antiscroll code it was fine to insert a separate box inside my middleSection, but I can’t adapt this code to make the actual middleSection with this acntiscrollbar.

Basically I need to make this middle section with antiscroll bar.

How to solve:

You can use jQuery, if you know and understand jQuery library, I recommend on this plugin:


It’s an awesome plugin, which is very simple.

Leave a Reply

Your email address will not be published. Required fields are marked *