How to make child of absolute parent be relative to the other parent

I have something like this
<div class="relative parent">
    <div class="absolute child1">
        <div class="absolute child2"></div>
    </div>
</div>

How can I make the child2 be relative to the parent (not child1)?
Was this page helpful?