I am trying to center a header and footer in the viewport (like the game below). Content scrolls both vertically and horizontally but the header and footer should stay in the same place on the viewport. I've tried using following CSS:
.BottomMenu {
background-color: #ADADAD;
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 50px;
}
But this produces a footer that is sticky vertically only. I need it to stay in that spot while the content moves in any direction.