Is there a way to ensure that the position: fixed;
element always remains exactly 16px from the right
, regardless of whether its parent's content is overflowing or not?
<div style="overflow: auto; position: absolute; right: 0;">
<div style="position: fixed; right: 0;">
<div><span>Hide Something</span></div>
<div><span>Show Something</span></div>
</div>
</div>