I have some modal windows in my apps. When I embed this onto a web page for use, with a standard header, the top of the model sits behind the top header of the website.
How do I either
bring the model to the front (preferred)
or 2. Reposition the model further down the page so the header doesn’t obscure the top of the modal.
In Knack’s CSS panel, set the “z index” property for the modal. Choose a number larger than the header i.e. You can choose a large number like 9999 assuming you want the modal to always be in front.
thanks, but that doesn’t seem to make any difference. The modal is still not on top.
Your header most likely has a larger z-index than 9999. In that case, set the z-index for your modal even larger. For instance on the WordPress “Divi” theme, the header has a z-index of 99999. See screenshot below:
@GazM@KnackPros Gaz Just looking through some old posts to see if I can help. In this case doesn’t z-index only works if you have the appropriate position property? It looks like it’s being overwritten for the #main-header element.
Not a fan of sticking !important ruling on everything but this should make the z-index work. Otherwise you may need to find out what parent element has effected the position property for this.