I see that this topic has been discussed, but I have a more specific problem.
element.offsetWidth usually works for me, but I am having a problem where in one case (not sure why), I am getting a return of 0 for the width of an element that is visible and definately not width 0. Also, this relatively positioned element's offsetLeft and offsetTop are -1. Any ideas?
element.offsetWidth usually works for me, but I am having a problem where in one case (not sure why), I am getting a return of 0 for the width of an element that is visible and definately not width 0. Also, this relatively positioned element's offsetLeft and offsetTop are -1. Any ideas?