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