how to align a form in center in div code example Example: align form to center of page form { text-align: center; }