<?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/"
xmlns:series="http://unfoldingneurons.com/"
> <channel><title>Comments on: Change Text Size On Click With&#160;JavaScript</title> <atom:link href="http://davidwalsh.name/change-text-size-onclick-with-javascript/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name/change-text-size-onclick-with-javascript</link> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Tue, 22 May 2012 05:31:04 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>By: Inder J</title><link>http://davidwalsh.name/change-text-size-onclick-with-javascript#comment-28636</link> <dc:creator>Inder J</dc:creator> <pubDate>Tue, 24 Jan 2012 07:52:00 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/change-text-size-onclick-with-javascript/#comment-28636</guid> <description>How to resize Images Plz do something for that : (</description> <content:encoded><![CDATA[<p>How to resize Images Plz do something for that : (</p> ]]></content:encoded> </item> <item><title>By: rn5150</title><link>http://davidwalsh.name/change-text-size-onclick-with-javascript#comment-27564</link> <dc:creator>rn5150</dc:creator> <pubDate>Thu, 10 Nov 2011 21:25:52 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/change-text-size-onclick-with-javascript/#comment-27564</guid> <description>Don&#039;t know what happened to the formatting in my above comment... sorry. It was supposed to have some line breaks in there :-/</description> <content:encoded><![CDATA[<p>Don&#8217;t know what happened to the formatting in my above comment&#8230; sorry. It was supposed to have some line breaks in there :-/</p> ]]></content:encoded> </item> <item><title>By: rn5150</title><link>http://davidwalsh.name/change-text-size-onclick-with-javascript#comment-27563</link> <dc:creator>rn5150</dc:creator> <pubDate>Thu, 10 Nov 2011 21:24:47 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/change-text-size-onclick-with-javascript/#comment-27563</guid> <description>Thanks for the great script!However, I am looking for a way to modify the script so that it works, as designed, regardless of the units being used in the CSS definitions? As the script is written, unless &#039;em&#039;s are used to define the font-size, merging, etc., the properties will not be affected.For example, if I set the following CSS:
p {font-size: 0.9em; margin-bottom: 10px;}
the font size will change, but not the margin. And if I were to set:
p {font-size: 14px; margin-bottom: 10px;}
nothing would change.Am I missing something simple, or is this functionality more difficult than I am anticipating?Thanks, in advance!</description> <content:encoded><![CDATA[<p>Thanks for the great script!</p><p>However, I am looking for a way to modify the script so that it works, as designed, regardless of the units being used in the CSS definitions? As the script is written, unless &#8216;em&#8217;s are used to define the font-size, merging, etc., the properties will not be affected.</p><p>For example, if I set the following CSS:<br
/> p {font-size: 0.9em; margin-bottom: 10px;}<br
/> the font size will change, but not the margin. And if I were to set:<br
/> p {font-size: 14px; margin-bottom: 10px;}<br
/> nothing would change.</p><p>Am I missing something simple, or is this functionality more difficult than I am anticipating?</p><p>Thanks, in advance!</p> ]]></content:encoded> </item> <item><title>By: austin</title><link>http://davidwalsh.name/change-text-size-onclick-with-javascript#comment-27070</link> <dc:creator>austin</dc:creator> <pubDate>Fri, 30 Sep 2011 20:36:53 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/change-text-size-onclick-with-javascript/#comment-27070</guid> <description>how can the JS be modified to target specific tags within the body.
I tried:
document.body.h1.style.fontSize
instead of:
document.body.style.fontSizeno luck</description> <content:encoded><![CDATA[<p>how can the JS be modified to target specific tags within the body.<br
/> I tried:<br
/> document.body.h1.style.fontSize<br
/> instead of:<br
/> document.body.style.fontSize</p><p>no luck</p> ]]></content:encoded> </item> <item><title>By: How to Change Font Size onClick in WordPress with JavaScript</title><link>http://davidwalsh.name/change-text-size-onclick-with-javascript#comment-23775</link> <dc:creator>How to Change Font Size onClick in WordPress with JavaScript</dc:creator> <pubDate>Wed, 27 Apr 2011 15:41:20 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/change-text-size-onclick-with-javascript/#comment-23775</guid> <description>[...] Source: David Walsh [...]</description> <content:encoded><![CDATA[<p>[...] Source: David Walsh [...]</p> ]]></content:encoded> </item> <item><title>By: Sierra</title><link>http://davidwalsh.name/change-text-size-onclick-with-javascript#comment-18990</link> <dc:creator>Sierra</dc:creator> <pubDate>Fri, 23 Jul 2010 17:43:07 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/change-text-size-onclick-with-javascript/#comment-18990</guid> <description>Everything is working great, but in IE the Make Text Bigger is not working. Anyone have an idea why?</description> <content:encoded><![CDATA[<p>Everything is working great, but in IE the Make Text Bigger is not working. Anyone have an idea why?</p> ]]></content:encoded> </item> <item><title>By: Dan</title><link>http://davidwalsh.name/change-text-size-onclick-with-javascript#comment-18286</link> <dc:creator>Dan</dc:creator> <pubDate>Fri, 18 Jun 2010 14:47:34 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/change-text-size-onclick-with-javascript/#comment-18286</guid> <description>@Ian Lloyd:  Good point but a lot of people prefer to do this with only one click, and changing the font size using the browser tools can make other website look bad so then they have to change it back..  :)</description> <content:encoded><![CDATA[<p>@Ian Lloyd:  Good point but a lot of people prefer to do this with only one click, and changing the font size using the browser tools can make other website look bad so then they have to change it back..  :)</p> ]]></content:encoded> </item> <item><title>By: Anil Kumar</title><link>http://davidwalsh.name/change-text-size-onclick-with-javascript#comment-18242</link> <dc:creator>Anil Kumar</dc:creator> <pubDate>Tue, 15 Jun 2010 21:26:02 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/change-text-size-onclick-with-javascript/#comment-18242</guid> <description>I found this is the most appropriate method for embedded IE in Windows Mobile, which follows IE5 standards and browser based zoom level came only IE 5.5+.</description> <content:encoded><![CDATA[<p>I found this is the most appropriate method for embedded IE in Windows Mobile, which follows IE5 standards and browser based zoom level came only IE 5.5+.</p> ]]></content:encoded> </item> <item><title>By: Büyü Çeşitleri</title><link>http://davidwalsh.name/change-text-size-onclick-with-javascript#comment-18153</link> <dc:creator>Büyü Çeşitleri</dc:creator> <pubDate>Fri, 11 Jun 2010 12:26:55 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/change-text-size-onclick-with-javascript/#comment-18153</guid> <description>Another approach would be to use JavaScript to load specific style sheets based on what size font has been selected. In this way, you can maintain control over the full layout. You might have 4 different style sheets, each on giving the end user the precise layout that you want them to have.You can also use this method to automatically make your content fit when the user resizes the page in a material way.</description> <content:encoded><![CDATA[<p>Another approach would be to use JavaScript to load specific style sheets based on what size font has been selected. In this way, you can maintain control over the full layout. You might have 4 different style sheets, each on giving the end user the precise layout that you want them to have.</p><p>You can also use this method to automatically make your content fit when the user resizes the page in a material way.</p> ]]></content:encoded> </item> <item><title>By: busy do Niemiec z Tczewa</title><link>http://davidwalsh.name/change-text-size-onclick-with-javascript#comment-17002</link> <dc:creator>busy do Niemiec z Tczewa</dc:creator> <pubDate>Tue, 13 Apr 2010 16:03:47 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/change-text-size-onclick-with-javascript/#comment-17002</guid> <description>I really like this cms. I use the same blog cms in 6 blogs of my network.</description> <content:encoded><![CDATA[<p>I really like this cms. I use the same blog cms in 6 blogs of my network.</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 3/7 queries in 0.008 seconds using disk: basic
Object Caching 805/805 objects using disk: basic

Served from: davidwalsh.name @ 2012-05-22 02:23:24 -->
