My screen layout currently looks like this:
https://i.sstatic.net/70DeL.png
I am facing the challenge of rendering component 2 inside component 3 in the following manner:
https://i.sstatic.net/gD9zF.png
Unfortunately, due to certain restrictions, I cannot place Angular component 3 inside Angular component 2. Therefore, I had to resort to using CSS to achieve the desired effect.
.component3 {
position: relative;
z-index: 1
}
.component2 {
position: absolute;
margin-left: calc(100% - 169px);
margin-top: 13px;
z-index: 2;
}
While the desired output has been achieved, there is an issue that arises when users scroll the page - component 2 continues to be visible on the page even though it should not scroll along with the rest of the content.
What steps can I take to address this issue?