I'd like a div (#menu) to be fixed with its bottom edge to the bottom edge of its container (#cont). Normally this is easy with absolute positioning, but I want #cont to stretch to the size of #menu. Then why does it matter if it sticks to the top or bottom, you wonder?
I use the jQuery slideUp effect which vertically shrinks #cont in an animation. While this happens, I'd like to see #menu move up, instead of the bottom edge of the container just being pulled over it like a blanket. However, by default overflow is cut off at the bottom.
It's for the menus on iceforge.net. Check them if you don't yet get what I mean.
I've worked something out, though it's a bit an ugly hack. #menu remains a normally positioned element. On document ready I use Javascript to make it absolutely positioned. To prevent #cont from collapsing, I add an empty div to it with the height of #menu.
It can be seen on the page I linked.