css move text to right of page code example Example 1: text align center text-align: center; Example 2: text-align attribute in css text-align:inherit;