Making an absolutely positioned element fill the width of it's container
===

I have a sidebar that I have positioned absolutely to the right for several reasons. But the problem is that if I have a shorter main content area, the sidebar gets cut off by the content.

Is there a way with CSS that we can get the container to wrap its height around the sidebar (if the sidebar is longer)?