you just need
position: fixed; in css for your nav element
Sorry I feel like an idiot. I could have sworn I had done that but I just tried that and it worked. Thanks.