I'm facing an unusual situation where I need a fixed div to be positioned relative to its parent, which is also a fixed div.
When you take a look at my example, everything will become clear.
<div class="drawer">
<p>Drawer</p>
</div>
<div class="sub-drawer">
<a href="#" class="close-drawer">x</a>
<p>Sub Drawer</p>
</div>
Essentially, I am creating a drawer that slides out from the left side of the page. The first drawer serves as a menu while the sub drawer displays content based on what users click in the first drawer. The sub drawer should be scrollable. However, I'm struggling with placing a fixed close link at the top right of the sub drawer so that it remains visible even when users scroll through the contents.
View the demo here: http://jsfiddle.net/z1n7kmky/