[thelist] Defer CSS to user agent styles using Javascript?

Lee Kowalkowski lee.kowalkowski at googlemail.com
Mon Oct 19 07:08:54 CDT 2009


On 19/10/2009, Barney Carroll <barney at clickwork.net> wrote:
> This method doesn't work because element.style.property only returns
> author-defined values.
>
> Any ideas?

element.style specifically refers to the style attribute of the
element, you'd need to use element.currentStyle and whatever its
non-IE counterpart is (getComputedStyle()? - probably need to look
that one up).

-- 
Lee
www.webdeavour.co.uk



More information about the thelist mailing list