center text css the right way code example Example 1: text align justify text-align: justify; Example 2: css text align right body { text-align: right; }