I need the code for situation like this

I see on the some websites that the
navigation table or bar on one side of the webpage
keep moving down or upwards as we move up
or down.
Navigation bar keeps itself in the center of the page

Can u please give me code for that.

i am using D/W

With Regards