Text-Align Method
How to center things with style in CSS
Stephen Sun

I strongly recommend not doing that. For one you are adding unnecessary markup (the container), unless you do have a natural wrapper.

You also will likely want to reset all text alignment inside the child element, otherwise you end up when centred text everywhere.

And once you do that, no child element will be centred anymore.