It is not very clear what exactly behavior of navbar you want.

Anyway it is not a complicated trick... You need to have the main container element of navbar absolutely positioned (style position...