Replies To: scaling text height jQuery

Re: scaling text height jQuery

Posted 18 February 2014 - 12:32 PM

If you want the actual text to scale you should look at the font-size css property. I don't know what environment you're working in (resizable at runtime) but the short answer is yes you can do this with jQuery. Checkout jQuery.css.

Re: scaling text height jQuery

Posted 19 February 2014 - 09:41 AM

Using a percentage for text height typically makes it a percentage of the parent's text height. Same with font size. It sounds like you need to add event handlers for when the page is loaded and when it's resized to get the height of the element you're looking for in pixels, and set the font size to that same height.