how to make an element stay in the middle of the page html code example Example: align div to center of screen div.the-center-div { margin: 0 auto; }