I approximatley this structure
<div>
<div id='1'> </div>
<div id='2'> </div>
</div>
I want to make it so that when div 1's content becomes too large for it and div 2 to fit in the main div, it will get a scrollbar and not push anything off the bottom of the parent div.
How can I do this in CSS?
EDIT:
the parent div (or rather, its parent) has a set height. and at this point setting overflow : scroll on div1 just causes it to go beyond the bottom with a scrollbar on the side.