Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is my header-bar overlapping scrollbar

I've tried looking at already existing questions but none of the solutions in them worked for me. Basically, my header-bar(which is supposed to be across the entire screen) is overlapping the scrollbar - and I can't seem to get it UNDER the scrollbar, which is what I want.

Overlapping

http://jsfiddle.net/9cnXN/2/

http://jsfiddle.net/9cnXN/2/embedded/result/

This is using Rockmelt as browser. I can also confirm problem on FireFox latest version as well as Chrome.

like image 212
Tanax Avatar asked Oct 17 '25 06:10

Tanax


1 Answers

You can adjust the margins of the scrollable area to be exactly the height of the header and footer bar - DEMO

.page {
    position: absolute;
    left: 0;
    right: 0;
    overflow: auto;
    margin: 44px 0;
}
like image 113
Zoltan Toth Avatar answered Oct 19 '25 20:10

Zoltan Toth