Imagine you have two divs (A)
and (B). The parent div (A)
has a height: auto
and so does the child div (B)
. Is there a way, without using JavaScript, to make div (B)
always occupy 90% of the height of div (A)
? Any insights or suggestions would be greatly appreciated.
UPDATE I forgot to mention that I need the inner div to expand as more content is added. While the child expands, I want the parent div to also grow but maintain a consistent distance from the inner div.