yui - yui3's version of jquery's .width() -


how calculate width (in pixels) of element in yui3? have tried .getcomputedstyle("width") , .get('offsetwidth') , neither return correct results, possibly because div doesn't have css width set on it.

it's working fine me here, provide example fails?

maybe you're expecting include padding/border? jquery's .width() doesn't include either, perhaps that's confusion lies.


Comments

Popular posts from this blog

jQuery clickable div with working mailto link inside -

java - Getting corefrences with Standard corenlp package -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -