I have some div with 250px width and 500px height and here’s what i want to do:
– put some words in that div with br’s next to it
– adapt font size so that those words occupy all div width (bigger words with small font size and vice versa)
Is this possible with only css? If not, is it possible with anything?! :p
Johnyb..I see your method works on words only (no spaces in between). Is there a way i can apply the resizing to a sentence and not just a word?
For example your first sentence “fits the width of the parent” would be adjusted to fit on a single line.