472,102 Members | 2,122 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,102 software developers and data experts.

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 2481
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
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.