V
vunet.us
Hello,
I use a floating div with overflow:auto properties for specific reason
(to avoid the bug of overlapping elements). Anyway, the problem is
that this div has 2 tables inside. In some rare cases, tables may have
larger width than my floating div, which is the container for these
tables, and therefore, scrollbars appear.
I need to remove scrollbars, so I created function to get each tables
cllientWidth values and if any table is larger than its container,
apply the same width to the container too or floating div as I called
it.
The problem begins with browser's incompatibility. Sometimes, it still
does not work right. So I figured this is not the best solution.
Could you please recommend a better solution if it occurs to you? I'd
really appreciate your suggestions.
Thanks.
I use a floating div with overflow:auto properties for specific reason
(to avoid the bug of overlapping elements). Anyway, the problem is
that this div has 2 tables inside. In some rare cases, tables may have
larger width than my floating div, which is the container for these
tables, and therefore, scrollbars appear.
I need to remove scrollbars, so I created function to get each tables
cllientWidth values and if any table is larger than its container,
apply the same width to the container too or floating div as I called
it.
The problem begins with browser's incompatibility. Sometimes, it still
does not work right. So I figured this is not the best solution.
Could you please recommend a better solution if it occurs to you? I'd
really appreciate your suggestions.
Thanks.