I have an outer div
position: relative;
overflow: hidden;
min-heigth: 450px;
containing a div
position: absolute;
top: 10px;
right: 10px;
The inner div is bigger than the min-heigth of the outer div and I see that the outer div is not scaling to the content of the inner div. Capping off the bottom content of the inner div.
How can I define the outer (or inner) div to scale vertically to the content (of the inner div)
Thanks
@trascher; It’s possible but you have add extra markup because when you give a child div an
absolute positionthen it’s parent div is not consider it’s height.Check this http://jsfiddle.net/sandeep/6UksD/1/
CSS:
HTML: