how to place a div in the center of the screen css code example Example: align div to center of screen div.the-center-div { margin: 0 auto; }