Reputation: 3084
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.
Can someone help me out?
Upvotes: 3
Views: 85
Reputation:
If that doesn't work, try #main{height:auto}
. You may need to add this same attribute to the Content DIV.
Upvotes: 0
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