Simple CSS problem

Ok here is my problem

I have a:

div 1 that is positioned relative with div 2 absolute positioned inside it.

But when the div 2 is longer than the div 1 it does not adjust to div 1 to the length of div 2.

how do I accomplish this.

Thanks