I need to create a table header centered and its values must be right-aligned and start right on the header's last character.

**Example**:

[![enter image description here](https://i.stack.imgur.com/BdEfa.png)](https://i.stack.imgur.com/BdEfa.png)

Any ideas to do it? I've found a way that requires to know the size of the header, but it requires to have known sizes for every resolution.