I know its not what you are asking for. but for this kind things i will automatically go for a Bootstrap Navbar