<?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: Get the rendered style of an element</title>
	<atom:link href="http://robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/feed/" rel="self" type="application/rss+xml" />
	<link>http://robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/</link>
	<description>Web development and Internet trends</description>
	<lastBuildDate>Sat, 20 Mar 2010 05:17:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ghislain</title>
		<link>http://robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-616577</link>
		<dc:creator>Ghislain</dc:creator>
		<pubDate>Mon, 04 Jan 2010 15:21:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-616577</guid>
		<description>Wow great !
I was looking for this regexpr for a while and I didn&#039;t know it was possible to use an anonymous function to process the found string. good work !</description>
		<content:encoded><![CDATA[<p>Wow great !<br />
I was looking for this regexpr for a while and I didn&#8217;t know it was possible to use an anonymous function to process the found string. good work !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Nyman</title>
		<link>http://robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-613292</link>
		<dc:creator>Robert Nyman</dc:creator>
		<pubDate>Mon, 07 Dec 2009 09:33:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-613292</guid>
		<description>damvaz,

There&#039;s no short solution to show the code here, but yes, just looping over style properties would do.
Alternatively, you could use the &lt;a href=&quot;https://addons.mozilla.org/en-US/firefox/addon/9641?src=reco&quot; rel=&quot;nofollow&quot;&gt;Inline Code Finder Firefox extension&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>damvaz,</p>
<p>There&#8217;s no short solution to show the code here, but yes, just looping over style properties would do.<br />
Alternatively, you could use the <a href="https://addons.mozilla.org/en-US/firefox/addon/9641?src=reco" rel="nofollow">Inline Code Finder Firefox extension</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: damvaz</title>
		<link>http://robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-613250</link>
		<dc:creator>damvaz</dc:creator>
		<pubDate>Mon, 07 Dec 2009 00:57:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-613250</guid>
		<description>hi!
How do I read all the css properties of an element?
(so then reapplied to the page)
css properties that were defined in a &quot;style&quot; of course.

In other words, I want a function to reset the page after I&#039;ve changed some way of using the DOM element. Thank you.

PS: I suppose it should work with nested loops.</description>
		<content:encoded><![CDATA[<p>hi!<br />
How do I read all the css properties of an element?<br />
(so then reapplied to the page)<br />
css properties that were defined in a &#8220;style&#8221; of course.</p>
<p>In other words, I want a function to reset the page after I&#8217;ve changed some way of using the DOM element. Thank you.</p>
<p>PS: I suppose it should work with nested loops.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ??????? &#187; [Web] ????</title>
		<link>http://robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-611547</link>
		<dc:creator>??????? &#187; [Web] ????</dc:creator>
		<pubDate>Wed, 25 Nov 2009 02:44:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-611547</guid>
		<description>[...] Get the rendered style of an element [...]</description>
		<content:encoded><![CDATA[<p>[...] Get the rendered style of an element [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: '+'</title>
		<link>http://robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-592699</link>
		<dc:creator>'+'</dc:creator>
		<pubDate>Wed, 01 Jul 2009 15:09:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-592699</guid>
		<description>[...] Robert Nyman [...]</description>
		<content:encoded><![CDATA[<p>[...] Robert Nyman [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Nyman</title>
		<link>http://robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-484363</link>
		<dc:creator>Robert Nyman</dc:creator>
		<pubDate>Fri, 12 Dec 2008 14:30:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-484363</guid>
		<description>Leto 58,

Unfortunately, not out of the box. Most JavaScript libraries struggle with this too, but some of them have nice solutions. If you don&#039;t want that, testing the code recursively is, as far as I know, the only option.</description>
		<content:encoded><![CDATA[<p>Leto 58,</p>
<p>Unfortunately, not out of the box. Most JavaScript libraries struggle with this too, but some of them have nice solutions. If you don&#8217;t want that, testing the code recursively is, as far as I know, the only option.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leto 58</title>
		<link>http://robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-484351</link>
		<dc:creator>Leto 58</dc:creator>
		<pubDate>Fri, 12 Dec 2008 13:43:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-484351</guid>
		<description>Hi,
Your function works as expected, but when I use it to test visibility of some elements for example, it returns &quot;inherit&quot;, while I expect a useful value.
What I would call a &quot;rendered style&quot; for visibility is either &quot;visible&quot; or &quot;hidden&quot;, and surely not &quot;inherit&quot;. :-)

Is there any smart function to get the &quot;actual rendered style&quot;, or must I test each parent recursively until I find one that has not &quot;inherit&quot; for the given style ?

God job anyway
Regards,
Leto</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Your function works as expected, but when I use it to test visibility of some elements for example, it returns &#8220;inherit&#8221;, while I expect a useful value.<br />
What I would call a &#8220;rendered style&#8221; for visibility is either &#8220;visible&#8221; or &#8220;hidden&#8221;, and surely not &#8220;inherit&#8221;. <img src='http://robertnyman.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Is there any smart function to get the &#8220;actual rendered style&#8221;, or must I test each parent recursively until I find one that has not &#8220;inherit&#8221; for the given style ?</p>
<p>God job anyway<br />
Regards,<br />
Leto</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gerardo</title>
		<link>http://robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-480269</link>
		<dc:creator>Gerardo</dc:creator>
		<pubDate>Thu, 27 Nov 2008 04:32:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-480269</guid>
		<description>I had to use the getter to get the style, getPropertyValue returned an empty string:

&lt;code&gt;str = &quot;strValue = document.defaultView.getComputedStyle(oElm, &#039;&#039;).&quot;+strCssRule;
eval(str);&lt;/code&gt;

This happend on Firefox 3 under Ubuntu.

Found this code very useful.</description>
		<content:encoded><![CDATA[<p>I had to use the getter to get the style, getPropertyValue returned an empty string:</p>
<p><code>str = "strValue = document.defaultView.getComputedStyle(oElm, '')."+strCssRule;<br />
eval(str);</code></p>
<p>This happend on Firefox 3 under Ubuntu.</p>
<p>Found this code very useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Javascript: obtener estilos tal cual son mostrados &#124; Webelop</title>
		<link>http://robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-480268</link>
		<dc:creator>Javascript: obtener estilos tal cual son mostrados &#124; Webelop</dc:creator>
		<pubDate>Thu, 27 Nov 2008 04:27:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-480268</guid>
		<description>[...] el blog de Robert Nyman encuentro el siguiente [...]</description>
		<content:encoded><![CDATA[<p>[...] el blog de Robert Nyman encuentro el siguiente [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Nyman</title>
		<link>http://robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-477774</link>
		<dc:creator>Robert Nyman</dc:creator>
		<pubDate>Fri, 21 Nov 2008 09:04:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-477774</guid>
		<description>Rik,

Check if you get any JavaScript errors, and see what it states.</description>
		<content:encoded><![CDATA[<p>Rik,</p>
<p>Check if you get any JavaScript errors, and see what it states.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rik</title>
		<link>http://robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-477531</link>
		<dc:creator>Rik</dc:creator>
		<pubDate>Fri, 21 Nov 2008 00:07:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-477531</guid>
		<description>I can&#039;t get this to work in Firefox 3 but all I&#039;ve done is copied and pasted the code.  I&#039;ve put an alert in at the beginning and end of the function and I get the first one but not the second one.  Any ideas?</description>
		<content:encoded><![CDATA[<p>I can&#8217;t get this to work in Firefox 3 but all I&#8217;ve done is copied and pasted the code.  I&#8217;ve put an alert in at the beginning and end of the function and I get the first one but not the second one.  Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geeks and tricks &#187; Blog Archive &#187; Obtener el estilo de una CSS externa con JavaScript</title>
		<link>http://robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-468180</link>
		<dc:creator>Geeks and tricks &#187; Blog Archive &#187; Obtener el estilo de una CSS externa con JavaScript</dc:creator>
		<pubDate>Thu, 30 Oct 2008 11:31:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-468180</guid>
		<description>[...] aquellos que quieran hacer modificaciones al estilo de su pÃ¡gina de esta forma, la entrada original con el mÃ©todo adjunto en un fichero estÃ¡ en el blog de Robert [...]</description>
		<content:encoded><![CDATA[<p>[...] aquellos que quieran hacer modificaciones al estilo de su pÃ¡gina de esta forma, la entrada original con el mÃ©todo adjunto en un fichero estÃ¡ en el blog de Robert [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ariden</title>
		<link>http://robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-465855</link>
		<dc:creator>Ariden</dc:creator>
		<pubDate>Sat, 18 Oct 2008 17:16:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-465855</guid>
		<description>Thanks for this tuto, this is exactly what I needed.

Good continuation</description>
		<content:encoded><![CDATA[<p>Thanks for this tuto, this is exactly what I needed.</p>
<p>Good continuation</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: HTML y DOM, AJAX, ventics.com Ventics</title>
		<link>http://robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-412859</link>
		<dc:creator>HTML y DOM, AJAX, ventics.com Ventics</dc:creator>
		<pubDate>Tue, 09 Sep 2008 14:09:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-412859</guid>
		<description>[...] A continuaciÃ³n se muestra una funciÃ³n compatible con todos los navegadores, creada por el programador Robert Nyman y publicada en su blog personal: [...]</description>
		<content:encoded><![CDATA[<p>[...] A continuaciÃ³n se muestra una funciÃ³n compatible con todos los navegadores, creada por el programador Robert Nyman y publicada en su blog personal: [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Rampersad</title>
		<link>http://robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-372998</link>
		<dc:creator>Ryan Rampersad</dc:creator>
		<pubDate>Thu, 14 Aug 2008 05:52:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-372998</guid>
		<description>Thank you! element.style.height didn&#039;t work out for me and this helps! Thanks!</description>
		<content:encoded><![CDATA[<p>Thank you! element.style.height didn&#8217;t work out for me and this helps! Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: July 24 Updated&#62;&#62; Keeping us Aware of the Traps of Bill-C61 - Wiihacks - Nintendo Wii Hacks Community</title>
		<link>http://robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-351525</link>
		<dc:creator>July 24 Updated&#62;&#62; Keeping us Aware of the Traps of Bill-C61 - Wiihacks - Nintendo Wii Hacks Community</dc:creator>
		<pubDate>Thu, 24 Jul 2008 15:21:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-351525</guid>
		<description>[...] Geist&#039;s Blog  /* Gets the rendered style of an element. * Credit and thanks to: Robert&#039;s Talk * Get the rendered style of an element - Robert&#8217;s talk - Web development and Internet trends * * Example usage: getStyle(document.getElementById(&quot;container&quot;), &quot;font-size&quot;); */ function [...]</description>
		<content:encoded><![CDATA[<p>[...] Geist&#8217;s Blog  /* Gets the rendered style of an element. * Credit and thanks to: Robert&#8217;s Talk * Get the rendered style of an element &#8211; Robert&#8217;s talk &#8211; Web development and Internet trends * * Example usage: getStyle(document.getElementById(&#8220;container&#8221;), &#8220;font-size&#8221;); */ function [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keeping us Aware of the Traps of Bill-C61 - Wiihacks - Nintendo Wii Hacks Community</title>
		<link>http://robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-332003</link>
		<dc:creator>Keeping us Aware of the Traps of Bill-C61 - Wiihacks - Nintendo Wii Hacks Community</dc:creator>
		<pubDate>Mon, 07 Jul 2008 19:26:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-332003</guid>
		<description>[...] July 07, 2008     /* Gets the rendered style of an element. * Credit and thanks to: Robert&#039;s Talk * Get the rendered style of an element - Robert&#8217;s talk - Web development and Internet trends * * Example usage: getStyle(document.getElementById(&quot;container&quot;), &quot;font-size&quot;); */ function [...]</description>
		<content:encoded><![CDATA[<p>[...] July 07, 2008     /* Gets the rendered style of an element. * Credit and thanks to: Robert&#8217;s Talk * Get the rendered style of an element &#8211; Robert&#8217;s talk &#8211; Web development and Internet trends * * Example usage: getStyle(document.getElementById(&#8220;container&#8221;), &#8220;font-size&#8221;); */ function [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Troy III</title>
		<link>http://robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-307892</link>
		<dc:creator>Troy III</dc:creator>
		<pubDate>Wed, 18 Jun 2008 15:15:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-307892</guid>
		<description>Reading this and that and those and what not, I come to one and only conclusion that is growing stronger and stronger everyday more. 

That IE is a Browser -  FX is a ridicule - while W3C is a godamn Dogma.</description>
		<content:encoded><![CDATA[<p>Reading this and that and those and what not, I come to one and only conclusion that is growing stronger and stronger everyday more. </p>
<p>That IE is a Browser &#8211;  FX is a ridicule &#8211; while W3C is a godamn Dogma.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gunnar</title>
		<link>http://robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-288408</link>
		<dc:creator>Gunnar</dc:creator>
		<pubDate>Fri, 30 May 2008 13:55:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-288408</guid>
		<description>You saved my day!</description>
		<content:encoded><![CDATA[<p>You saved my day!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-287484</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Thu, 29 May 2008 17:32:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-287484</guid>
		<description>Wow, this is an awesome tip! Thanks, that helped me solve a huge problem that I had been trying to figure out for a while, thanks!</description>
		<content:encoded><![CDATA[<p>Wow, this is an awesome tip! Thanks, that helped me solve a huge problem that I had been trying to figure out for a while, thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
