Say I have three boxes to nest. A, B, and C. I want to have them nested in an way that C resides within, but positions relative to B, B resides within but positions relative to A, and A positions relative to the browser. I understand in common cases, where I only need to nest two of them, say B within A, I can make A position:relative and B position:absolute. In this way, I embed box B within A and adjust its positions within A's area. However in the case of three boxes(or even more ), How can I have them placed in such a way?
In picture. my desired effect would be as following. So that B is limited to the area within A, and C is limited within area of B