[ng-dhtml] style.js

Dean Edwards dean at edwards.name
Sat Sep 17 15:43:49 CDT 2005

Scott J. Miles wrote:
>>> Dean Edward's IE7 supports all unit types. It is open source so
>>> maybe you can grab some code from there to support more units?
> Wow, I've never seen that before. Lots of goodies there.

If you are interested in computing pixel values for IE6 then there is a 
getPixelValue function in ie7-core.js:


If you want to compute pixel values for IE5.x then that is much more 
complicated. You can take a look here:


but as I say it is complicated...

FYI - clientWidth/Height are always zero for elements without "layout" 
in IE.



More information about the NG-DHTML mailing list