In my web application, there is a search field that allows users to enter tags for searching. The window should pop up directly below the search field as shown in this image: Image
I am trying to figure out how the window positioning is actually done. Is it achieved through using a hidden div with absolute positioning and z-index? I'm particularly interested in learning about common approaches using Vanilla Javascript, HTML5, and CSS.