alinght center css code example Example 1: center align css text-align: center; Example 2: align center css margin: auto;