place div in center of page on top of everything code example Example: align div to center of screen div.the-center-div { margin: 0 auto; }