html straight text align center code example Example: center text in css .class { text-align: center; }