<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: jQuery Tip: Quick and Easy Font Resizing</title>
	<atom:link href="http://dev-tips.com/featured/jquery-tip-quick-and-easy-font-resizing/feed" rel="self" type="application/rss+xml" />
	<link>http://dev-tips.com/featured/jquery-tip-quick-and-easy-font-resizing</link>
	<description>Become a Better Developer, One Tip at a Time.</description>
	<lastBuildDate>Tue, 27 Sep 2011 18:42:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: silviu</title>
		<link>http://dev-tips.com/featured/jquery-tip-quick-and-easy-font-resizing#comment-2022</link>
		<dc:creator>silviu</dc:creator>
		<pubDate>Wed, 29 Jun 2011 17:52:24 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=68#comment-2022</guid>
		<description>You are good man! Thanks for your tips. I learning php and I need tools and tips from people like you! Thanks!</description>
		<content:encoded><![CDATA[<p>You are good man! Thanks for your tips. I learning php and I need tools and tips from people like you! Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://dev-tips.com/featured/jquery-tip-quick-and-easy-font-resizing#comment-1983</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Mon, 14 Mar 2011 20:33:05 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=68#comment-1983</guid>
		<description>Great tute Drew. I have 2 questions. Let&#039;s say I wanted to limit the sizing to a max number, say 18px; how would I do that?

And my second questions is I tried to see if I would ad multiple elements like &quot;var ourText = $(&#039;p, h2&#039;);&quot;

What happened was when I clicked the large button, the text on both the p, and h2 jumped down a size before it got bigger. How can I fix these two issues?

I&#039;m working on a project today and I would love to implement this.

Thanks
Rob</description>
		<content:encoded><![CDATA[<p>Great tute Drew. I have 2 questions. Let&#8217;s say I wanted to limit the sizing to a max number, say 18px; how would I do that?</p>
<p>And my second questions is I tried to see if I would ad multiple elements like &#8220;var ourText = $(&#8216;p, h2&#8242;);&#8221;</p>
<p>What happened was when I clicked the large button, the text on both the p, and h2 jumped down a size before it got bigger. How can I fix these two issues?</p>
<p>I&#8217;m working on a project today and I would love to implement this.</p>
<p>Thanks<br />
Rob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: About Me Site</title>
		<link>http://dev-tips.com/featured/jquery-tip-quick-and-easy-font-resizing#comment-1858</link>
		<dc:creator>About Me Site</dc:creator>
		<pubDate>Mon, 06 Sep 2010 13:49:49 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=68#comment-1858</guid>
		<description>[...] making it easy to link to a specific page. Then i added some jquery animated font resizing using THIS LINK as a resource. And finally i added a print button in my #menu.   Tagged with: .me &#8226; about [...]</description>
		<content:encoded><![CDATA[<p>[...] making it easy to link to a specific page. Then i added some jquery animated font resizing using THIS LINK as a resource. And finally i added a print button in my #menu.   Tagged with: .me &bull; about [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cakka</title>
		<link>http://dev-tips.com/featured/jquery-tip-quick-and-easy-font-resizing#comment-1781</link>
		<dc:creator>cakka</dc:creator>
		<pubDate>Fri, 21 May 2010 03:18:40 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=68#comment-1781</guid>
		<description>hi drew thanks for this tutorial, this is very helpfull for me..</description>
		<content:encoded><![CDATA[<p>hi drew thanks for this tutorial, this is very helpfull for me..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcino</title>
		<link>http://dev-tips.com/featured/jquery-tip-quick-and-easy-font-resizing#comment-1764</link>
		<dc:creator>Marcino</dc:creator>
		<pubDate>Wed, 21 Apr 2010 13:05:27 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=68#comment-1764</guid>
		<description>hi, my js knowledge is close to 0... how will i use this script for multiple tags? eg. P and A
thank you!</description>
		<content:encoded><![CDATA[<p>hi, my js knowledge is close to 0&#8230; how will i use this script for multiple tags? eg. P and A<br />
thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcino</title>
		<link>http://dev-tips.com/featured/jquery-tip-quick-and-easy-font-resizing#comment-1763</link>
		<dc:creator>Marcino</dc:creator>
		<pubDate>Wed, 21 Apr 2010 11:13:15 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=68#comment-1763</guid>
		<description>Brilliant. Thank you!</description>
		<content:encoded><![CDATA[<p>Brilliant. Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Durkin</title>
		<link>http://dev-tips.com/featured/jquery-tip-quick-and-easy-font-resizing#comment-1732</link>
		<dc:creator>Durkin</dc:creator>
		<pubDate>Tue, 30 Mar 2010 15:39:51 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=68#comment-1732</guid>
		<description>Hey man, this example worked fine in your demo but when I applied it to my site it only changed the font size in my footer. Is there any chance you could take a look at the site I&#039;m working on and see what&#039;s going wrong? It won&#039;t resize the main text. 

Thanks very much

http://chesterbookbinding.co.uk 

I&#039;ve added the code on the index.html file.</description>
		<content:encoded><![CDATA[<p>Hey man, this example worked fine in your demo but when I applied it to my site it only changed the font size in my footer. Is there any chance you could take a look at the site I&#8217;m working on and see what&#8217;s going wrong? It won&#8217;t resize the main text. </p>
<p>Thanks very much</p>
<p><a href="http://chesterbookbinding.co.uk" rel="nofollow">http://chesterbookbinding.co.uk</a> </p>
<p>I&#8217;ve added the code on the index.html file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Beck</title>
		<link>http://dev-tips.com/featured/jquery-tip-quick-and-easy-font-resizing#comment-1722</link>
		<dc:creator>Andrew Beck</dc:creator>
		<pubDate>Thu, 18 Mar 2010 19:17:16 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=68#comment-1722</guid>
		<description>Same here... slightly annoying...</description>
		<content:encoded><![CDATA[<p>Same here&#8230; slightly annoying&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Beck</title>
		<link>http://dev-tips.com/featured/jquery-tip-quick-and-easy-font-resizing#comment-1721</link>
		<dc:creator>Andrew Beck</dc:creator>
		<pubDate>Thu, 18 Mar 2010 19:15:58 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=68#comment-1721</guid>
		<description>Had the same issue. This is how I solved it:
&lt;code&gt;
$(&#039;input&#039;).click(function(){
			var ourText = $(&#039;p&#039;);
			var currLineHeight = ourText.css(&#039;lineHeight&#039;);
			var finalNum = parseFloat(currLineHeight, 10);
			var stringEnding = currLineHeight.slice(-2);
			if(this.id == &#039;large&#039;) {
				finalNum *= 1.2;
			}
			else if (this.id == &#039;small&#039;){
				finalNum /=1.2;
			}
			ourText.animate({lineHeight: finalNum + stringEnding},300);
		});
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Had the same issue. This is how I solved it:<br />
<code><br />
$('input').click(function(){<br />
			var ourText = $('p');<br />
			var currLineHeight = ourText.css('lineHeight');<br />
			var finalNum = parseFloat(currLineHeight, 10);<br />
			var stringEnding = currLineHeight.slice(-2);<br />
			if(this.id == 'large') {<br />
				finalNum *= 1.2;<br />
			}<br />
			else if (this.id == 'small'){<br />
				finalNum /=1.2;<br />
			}<br />
			ourText.animate({lineHeight: finalNum + stringEnding},300);<br />
		});<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Smartness</title>
		<link>http://dev-tips.com/featured/jquery-tip-quick-and-easy-font-resizing#comment-1543</link>
		<dc:creator>Smartness</dc:creator>
		<pubDate>Sat, 16 Jan 2010 09:49:20 +0000</pubDate>
		<guid isPermaLink="false">http://dev-tips.com/?p=68#comment-1543</guid>
		<description>Two questions!

1. How about resetting the text to original size?

2. Adding more line-height when text gets larger.</description>
		<content:encoded><![CDATA[<p>Two questions!</p>
<p>1. How about resetting the text to original size?</p>
<p>2. Adding more line-height when text gets larger.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

