Background mask to a dimension text

How to create a background mask to a dimension text?