javascript - Stop relative divs scrolling past a certain point -


how can stop relative divs scrolling past point?

here's fiddle understand

basically, want able scroll normal, difference being don't want see behind header tag, i.e. stands when scroll, can see divs through header tag, want when scrolls, cut off point bottom of header tag when scrolling won't see past header line.

hope makes sense.

here's header css

#header {   height:40px;   width:100%;   background:transparent;   position:fixed;   border:1px solid black;   top:0; } 

you give header (non-transparent) background-color, or create new scroll-area below header overflow: scroll/auto


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -