Browsing Tag

CSS

Software Engineering

CSS’ z-index misunderstood

The z-index property in CSS behaves differently than I (unconsciously) always thought, I learned today. A web-application I’m working on has two CSS dropdown menu’s, that can sometimes overlap. The main menu should appear above the other menu, so I gave the main menu a higher z-index than the other menu. The container of my main menu also had a z-index, but it’s lower than the z-index of both menu’s so it doesn’t matter right? Well, apparently is does matter, in some cases. Continue Reading