Table content going outside div
I have a div with no set hieght and a min-height of 250px.
When I put in content that is taller than 250px, the div gets longer, as expected.
When I put in a table, the div remains 250px and the table extends outside the div area (in height only, not width).
I tried开发者_如何转开发 adding style="display: block;"
to the table, but that didnt help.
I have no idea why a table specificly would be a problem in this situaltion.
Maybe its a specific CSS thing?
If you are using IE7
try using the property. of your div that is miss-behaving.
display: inline-block
You can create a class that is quick and easy to apply for this problem.
.inlineblk { display: inline-block }
精彩评论