Interview practice question
A dropdown appears behind other content
Frontend Engineering · HTML and CSS · Beginner
A dropdown menu appears behind other content even though it has a high z-index. Why, and how do you fix it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Stacking context limits z-index.
- Parent with transform/opacity/z-index creates context.
- Adjust parent's stacking or move dropdown.
- overflow hidden clipping.
- Portals or popover API.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.