Fit text perfectly inside a div (height and width) without affecting the size of the div
问题 I apologise in advance as I know this question has come up many times before but I just can't seem to find the right solution (and believe me I've tried a few!) Basically it's the old " Fit text perfectly inside a div without affecting the size of the div ". And unless I'm a complete numpty, I believe CSS has no way of doing this. So what I mean basically is rather than doing something like: #someDiv { font-size: 12px; } or... #someDiv { font-size: 1em; } ...I want to be able to do something