How can I ensure that the #icon appears below the #dropdown in the following example?
https://i.stack.imgur.com/GoBcR.png
The position: fixed
of #container seems to be creating a new stacking context for its children. Changing the position
value fixes the issue, but that is not an option.
- #icon must use
position: absolute
- #container must have
position: fixed
- #dropdown should remain a child element of #container
- #dropdown should have
position: absolute
I am seeking a CSS-only solution. Check out the example playground here.