Erik Erik - 4 years ago 110
HTML Question

Why won't my div expand to accommodate my table?

I have a dynamic table that expands in height at various times. It's wrapped in a DIV tag. The DIV tag does not expand with the table. Is there a trick to fix this?

Answer Source

Without seeing any code, it sounds like you needs a clearing br under the table.

Add <br style="clear:both;" /> after the table and before the closing </div>.

Of course, you should place that CSS in a class and add it to your stylesheet.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download