To flow (resize) text size of html element based on width and height