<?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>
	<pubDate>Sun, 05 Jul 2009 20:29:13 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<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'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 "inherit", while I expect a useful value.
What I would call a "rendered style" for visibility is either "visible" or "hidden", and surely not "inherit". :-)

Is there any smart function to get the "actual rendered style", or must I test each parent recursively until I find one that has not "inherit" 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 = "strValue = document.defaultView.getComputedStyle(oElm, '')."+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't get this to work in Firefox 3 but all I've done is copied and pasted the code.  I'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'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's Blog  /* Gets the rendered style of an element. * Credit and thanks to: Robert's Talk * Get the rendered style of an element - Robert&#8217;s talk - Web development and Internet trends * * Example usage: getStyle(document.getElementById("container"), "font-size"); */ 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 - Robert&#8217;s talk - Web development and Internet trends * * Example usage: getStyle(document.getElementById(&#8221;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's Talk * Get the rendered style of an element - Robert&#8217;s talk - Web development and Internet trends * * Example usage: getStyle(document.getElementById("container"), "font-size"); */ 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 - Robert&#8217;s talk - Web development and Internet trends * * Example usage: getStyle(document.getElementById(&#8221;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 -  FX is a ridicule - 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>
	<item>
		<title>By: Mario</title>
		<link>http://robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-286289</link>
		<dc:creator>Mario</dc:creator>
		<pubDate>Wed, 28 May 2008 15:22:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-286289</guid>
		<description>For top and left it returns auto which is not very useful.</description>
		<content:encoded><![CDATA[<p>For top and left it returns auto which is not very useful.</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-274581</link>
		<dc:creator>Robert Nyman</dc:creator>
		<pubDate>Fri, 16 May 2008 06:47:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-274581</guid>
		<description>picmauri,

No problem at all. I'm glad to hear that it works for you now!</description>
		<content:encoded><![CDATA[<p>picmauri,</p>
<p>No problem at all. I&#8217;m glad to hear that it works for you now!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: picmauri</title>
		<link>http://robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-274218</link>
		<dc:creator>picmauri</dc:creator>
		<pubDate>Thu, 15 May 2008 19:04:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-274218</guid>
		<description>Hi Robert,
Now is work fine.
The problem was a mismatch on the background-color value....the color value of an element with firefox is expressed with rgb (xxx,xxx,xxx) , while with IE7 the same value is expressed with #xxxxxx. However i had some error with another script.

TNX
and sorry for my english....I'm from Italy!</description>
		<content:encoded><![CDATA[<p>Hi Robert,<br />
Now is work fine.<br />
The problem was a mismatch on the background-color value&#8230;.the color value of an element with firefox is expressed with rgb (xxx,xxx,xxx) , while with IE7 the same value is expressed with #xxxxxx. However i had some error with another script.</p>
<p>TNX<br />
and sorry for my english&#8230;.I&#8217;m from Italy!</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-273817</link>
		<dc:creator>Robert Nyman</dc:creator>
		<pubDate>Thu, 15 May 2008 08:36:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/#comment-273817</guid>
		<description>Picmauri,

The script should work in IE 7, so make sure you don't have any other error in there. The commented out line is only there to handle any potential error, so you can alert the value of e, to see what error you get.</description>
		<content:encoded><![CDATA[<p>Picmauri,</p>
<p>The script should work in IE 7, so make sure you don&#8217;t have any other error in there. The commented out line is only there to handle any potential error, so you can alert the value of e, to see what error you get.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
