469,300 Members | 2,205 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,300 developers. It's quick & easy.

offsetWidth of DIV returns zero inside TABLE tag.

Hi,
I have developed one custom dropdown JSP tag just as HTML select box .
I calculate width of dropdown box using div's offsetWidth attribute.
But I am getting it's value as zero inside table tag .Outside the table it is returning proper width
What would be the reason of not getting proper offsetWidth of DIV inside TABLE?

Please give me suggestion.

Thanks,
Kuldeep
Sep 25 '06 #1
1 2357
acoder
16,027 Expert Mod 8TB
Perhaps the script/code is declared inside the table and you need to move it out.
May 17 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Beni Rose | last post: by
2 posts views Thread by webEater | last post: by
5 posts views Thread by liketofindoutwhy | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.