Unfortunately that is not possible. The overlay and the search has to be fixed, otherwise if there is a relative parent element then it would not overlap the whole document, but only that element relatively – it is a CSS language limitation. Fixed CSS potisitioning removes the search elements from the document styling flow and allows this overlaying layout.