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

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -