css how to position text in center code example Example: center text in css .class { text-align: center; }