autosize / scale text to fit width per line
Posted on 2005-05-02
I am trying to design a label with the first name and last name on the first line, and say there city/state on the second. the width of the label is 400 px, i am trying to figure our a way in css or something else to auto scale the text up or down so that it all fits on one line. i.e. joe evans might be say font size of 40 to fit the width but martha spielberg but only be 30 px. Also i guess i will need to keep in mind the total height of the label i.e. 400 px wide x 200 px high.
Any suggestions on how to do this would be appreciated... Also running the app in Coldfusion if you need to know this!