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