div#hamburger-menu { float: right; span { border: 2px solid black; width: 50px; margin: 5px; display: block; } } jQuery("#hamburger-menu").click(function (e) { jQuery("#nav").toggleClass('hidden'); });