<div class="center">this content will be in the horizontally centered of your page</div> <style> /** this is the css to center a DIV or any element **/ .center { display: table; margin: 0 auto; } </style>