I have a <div>
which is 400px wide and 100px high. I want to put a heading in that which will vary in length, and it will take up two lines in the <div>
if it is long enough (i.e the <div>
will have a default font size of 50px). I want to have the text start at 50px, and have it to shrink down if the text is too long to fit in to the box on two lines.
How do I go about this? I've been playing around with Javascript for a few hours but I am not able to come up with or find anything. All I can find is how to do this for text on one line.