The contact pop up, I followed a tutorial and set the z-index to 9999 (so it overlays everything)
The new pop-up I have done, I used z-index of 8888. Is it right or wrong to do this, and what is a good general rule to follow with z-indexes?
Yep, you are right! Z-index of 20 will show above 10 but be below 30
Regarding Z-index values, it doesn’t matter much, but generally, to keep it simple there is no use of having them at 9000+ etc. Any specific reason you got them so high? It’s better to keep them as low as possible, starting from “0” and then gradually number up because it’s easier to remember than 8324 on the Nav and 8482 on the loader div (it was just an example… .
Thank you for clearing that up. The tutorial I followed said to set the modal background to 9999 z-index, which was a bit pointless it seems, as it’s only served to confuse me for so long! I’ll change them to easier to remember levels.