My webpage is divided into two parts: child1 and child2.
Page Hierarchy:
Parent
Child1
Child2
Here are the CSS styles included in the page:
Child1 -> z-index: 1
Child2 -> z-index: 2
What I want to achieve is to add a backdrop to the entire page when a button within child1 is clicked. The CSS for this is:
.backdrop {
position: fixed;
background-color: rgba(16,19,22,.6);
z-index: 5;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
Currently, this backdrop only covers the child1 component, but I need it to span across the entire page.