That’s because you have no rules applied that will affect the content.
All you have is a rule for centering the whole element. You probably need to use flexbox instead and then can control both the element and it’s content.
You probably don’t need the absolute positioning either but without context it’s hard to tell.
If you give the relevant HTML and css as already asked I’m sure we can come up with the right solution