I want the “blue” container to always be 70px high, while the previous “green” div always max out the height available when the div is resized with javascript.
I’ve played around with it for a while without finding a proper solution. Help will be appreciated.

As promised, here’s my answer.
absoluteinsiderelativepositioning is the easiest way to do this.Live Demo
HTML:
CSS: