HTML/CSS creating a centralized box with text

So I’ve been trying to create a small info box on the center of my homepage, the way I have been doing it is by taking text and using margin/padding to size and move it. This has proven to be quite difficult and I know there has to be a way that is easier than that. So please let me know of anyways I can get that done.

both horizontal and vertical? Does the box have a fixed with and height?

It depends, i can really recommend this centering guide:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.