I want to freeze the header row of the list.

I found [this](http://bkemmler.blogspot.in/2010/02/sharepoint-list-fixed-header.html) link to do so and I put the code in the Content Editor Web Part of the same view page.

My problem is that I am getting the scroll bars withing the view but the headers are not freeze.

Snapshot -- ![Document view without headers](https://i.stack.imgur.com/VxXSD.png)

What should I do ?

Please help.