Hey guys, I’m having a hard time figuring out how to get the height of my wrapper div to have at least the same height as any content in it. For instance, when I have a “tall table”, the table protrudes past the bottom of the wrapper div (or the wrapper does not lengthen itself to match the height of the table). I have the table within it’s own DIV. If it’s out of the DIV, then the wrapper div does extend to include all of the table.
So obviously I need to add something to the div that surrounds the table, but I can’t figure it out. Any help appreciated out after hours of working with height, min-height, overflow, etc… to no avail.
Can you post the HTML and CSS for hte div and table only? I can’t get to the site from my school. Have you set a height on the div? Is the content just cutting off or is there scrollbars appearing.
Here’s a pic of what it looks like. The wrapper has a repeating image which is the white with bars on each side…that’s the part I want to extend down behind the table.
It’s because the div that contains the table is floated so it is collapsing the entire divs height to the min-height:300px; you set. Adding overflow:hidden; will make it contain the floats. IE gets this wrong…Just add overflow:hidden; to the #wrapper.