I would like to display a single line of text across the screen so that:
Width:
100%Fonts-size
is maximum possible based on browser width- One line only (
nowrap
) - Given
font-family
My idea is to start a hidden div
and random font-size
, then run jQuery to "brute force" to increase or decrease font-size
so that its width is close to browser width.
Is there a best way to do this? Great if I can see some examples. Thanks.