I have a centered container div, containing a content div to the left and a nav div to the right. I want the nav div to be fixed, as in not scrolling with content. See image below. Is this doable?

I have a centered container div, containing a content div to the left and a nav div to the right. I want the nav div to be fixed, as in not scrolling with content. See image below. Is this doable?

Copyright © 2021 Jogjafile Inc.
This is indeed possible, use this in your CSS:
Make sure it is the first element in the document flow, right after
<body>and it should behave as you described.An example can be seen here.
Updated example for fixed position parent here.
Updated example for parent centered and nav fixed.