text align right and text align justify code example Example: center text in css .class { text-align: center; }