Absolute positioning inside absolute position

Because position: absolute resets the relative position for children just as position: relative does.

There is no way around this – if you want the third div to be absolutely positioned relatively to the first one, you will have to make it a child of the first one.

Leave a Comment