Resizes text to fit into container