When attempting to overlay two divs like layers of content, I encountered a challenge. Because the size of the content is unknown, I used POSITION:ABSOLUTE for both divs to position them at the top left of their container.
The issue: The container does not expand with absolute divs. I attempted to use jQuery to set the height of the child equal to the parent's height. However, since the absolute child div does not have width or height initially, the code had no effect.
$("div.selectionTabs.inner").css("height",$("div.selectionTabs.inner>div.productsTab.under").height()+"px");