On websites like Facebook and LinkedIn, there is a search box where you can type in your query and the results will display below it, covering up other content on the page. This functionality is shown in the screenshot below from LinkedIn.
I am curious about how this feature can be implemented. How can I create a search div
(or should it be a different element?) that overlays other elements on the page?
For reference: some of my existing div
s are set to position:fixed
which may need to be overridden for this effect.