different text align styles code example Example 1: css text align right body { text-align: right; } Example 2: css center string p { text-align: center; }