One Step,
I had this tutorial for a long time in my bookmarks, it's basicly a tutorial of how to make a UI to control the text size. If you play with the settings you should be able to accomplish the same effect with random <div> etc.
Good luck! Let me know if it was usefull to you.