I have an absolutly positioned element with content inside. It can be a or a few tag. So I don\'t know the height of the content.
if you add display:table to your #absolute div you should get what you want:
display:table
#absolute
http://jsfiddle.net/3KTUM/2/