body{ margin: 0; } .bottom-bar{ position: fixed; background: pink; padding: 10px; width: 100%; bottom:0; } .bottom-bar span{ cursor: pointer; } .bottom-bar{ display: none; } .active-menu .bottom-bar{ display: block; } #debug{ position: fixed; background: blue; padding: 10px; width: 100%; top: 0; color: white; font-family: monospace; } #debug:before{ content: "debug: " }