Fit text into HTML element