Better to give an example, to illustrate what i am describing.
The div element with the list of categories starts mid page, but as the user scrolls down it remains at the top?
I know how to make a fixed element. My question is how do i make the element appear by default in the center of the page, but as the user scrolls down, the element will stay at the top.
Here’s a quick jsFiddle example of what I think you’re looking for. Basically you have a div that is initially positioned relative, then as the page is scrolled, the position is changed to fixed. jQuery does the heavy liting here with the $(window).scroll event.
jQuery:
CSS: