Here is my fiddle http://jsfiddle.net/vZjnd/
Given the facts
.wrapper height is fixed.
.main is overflow-auto.
.slide content is variable so height is variable from time to time.
my goal is
.main to be pushed up (height reduced) as .slide occupies part of .wrapper
Any idea?
Here is my solution:
code: http://jsfiddle.net/vZjnd/5/
You can use
animateto make it more smoothly.