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
Post a Comment