home
NOTE: Under Construction - I'm in the middle of upgrading my site and lots of stuff is kinda broken. Please forgive the mess.

Center Text Horizontally In CSS

This is how I'm centering text horizontally inside a container.

February 2022
Code
.className {
    text-align: center;
}
  • I expect there's other ways to do this. Not sure if there's a new preferred way, but this works for me

═══ § ═══