display should be inline along with text align in css code example Example: css text align right body { text-align: right; }