You mean something like this?
http://jsfiddle.net/vadikom/a3ra27kq/
Replace the CSS you just added with the one from the above JSFiddle demo (just omit the last few rules after the comment /* IGNORE: Unrelated generic demo styles */
) and also set the “main-nav” class to your <nav>
element.