In the example posted above, I want the page content div to hide once it reaches the fixed-positioned orange div. In other words, I want the page content div to scroll into the fixed div; not let the content scroll past the fixed div. As you can see the page content div remains visible when I scroll.
You can use it to apply a new class to the content box when it reaches the header (150px from top should do it; a combined total of the header’s height and margin-top). Then, define new styles against the new class so that the content box does whatever you want.
Author
Posts
Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘CSS’ is closed to new topics and replies.