css right align text right code example Example 1: css text align right body { text-align: right; } Example 2: css text align left body { text-align: left; }