By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,043 Members | 1,148 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,043 IT Pros & Developers. It's quick & easy.

offsetWidth of DIV returns zero inside TABLE tag.

P: 1
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.

Sep 25 '06 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 15k+
P: 16,027
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.