css content right align code example Example 1: align div to the right display:inline-block; float:right; Example 2: css text align right body { text-align: right; }