zero
zero

Reputation: 3084

min-height not working in any browser

I have a main wrapper <div> (id #main) that I want to grow as text copy is added to the content <div>, but for some reason the main div will not grow to accommodate the other <div> elements that are in it let alone any content added to the content div.

jsFiddle

Can someone help me out?

Upvotes: 3

Views: 85

Answers (2)

user416527
user416527

Reputation:

If that doesn't work, try #main{height:auto}. You may need to add this same attribute to the Content DIV.

Upvotes: 0

Tom
Tom

Reputation: 311

You could try a few things here: Float the parent div to the left. If this doesn't do anything then use the overflow: hidden; property in the parent div. Add clear: both; in a child element within it's container.

Upvotes: 2

Related Questions