Elad Lachmi
Elad Lachmi

Reputation: 10581

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?

Upvotes: 2

Views: 6568

Answers (1)

nelaaro
nelaaro

Reputation: 3246

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 }

Upvotes: 5

Related Questions