You have to use the font-size property. You wrote just an x, which is not a valid value (also checked it back to the CSS validator). You have to write something like 4rem or in another unit like 400%.
If you want to adjust the font height (=font-size) so that the font takes up 50% of the width, it's not so easy. Different fonts have a different width / height proportion, also depending on the letter. For this you would need JavaScript, pure CSS isn't enough. But I think, that cannot be your goal, here is an example to show why: If the computer have the result 100 and the human the result 5, the 5 would be a lot bigger than the 100.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…