Dashboard

CSS & HTML

Choose a question track. Theory builds the concepts; debugging applies them to code and real problems.

Code-focused scenarios that ask you to diagnose behavior and choose a practical fix.

CSS & HTMLยท Debugging & Problem SolvingSenior
Question 1 of 3
Code
css
.toolbar { transform: translateZ(0); }      /* new stacking context */
.toolbar .dropdown { position: absolute; z-index: 9999; }
.card { position: relative; z-index: 1; }

A dropdown with z-index: 9999 still renders under a sibling card with z-index: 1. Why?

Help us improve CodingReady

Allow anonymous analytics to help us understand practice usage. You can reject analytics and continue using the site.