I’ve implemented a popup box that dynamically displays search options. I want the box to “float” above all of the site content. Currently, when the box is displayed it displaces all of the content below it and looks bad.
I believe I’ve already tried setting the z-index of the box’s div to above that of the remaining page content, but still no luck.
You want to use absolute positioning.
For instance :
To get it to work, the parent needs to be relative (
position:relative)In your case this should do the trick: