Is it possible for a relatively positioned element's height to adjust based on the height of its child element?
Check out the Demonstration
HTML:
Items:
<div id="love">
<textarea id="magic"></textarea>
</div>
Dung:
CSS:
#love{
position:relative;
background:#eee;
width:60px;
}
#magic{
position:absolute;
width:20px;
}