how to align divs code example Example: div align center .center { text-align: center; } // or <div style="text-align:center"> </div>