Fits text in HTML element.