z-index: 1000
(or a value that is larger than other Z-indexes) in your CSS should work. The browser not only renders with the coordinates X and Y, there is also Z, which determines which layer will be on top. z-index
does this.
You should probably avoid using this. A cleaner solution would be to fix the automatic indexing of the browser, for example (for example) by placing the elements in the correct order in your HTML.
source share