New: We've launched a brand new Coding Challenges section! Check out these interactive, real-world exercises to level up your skills.Explore Challenges
FrontendPrep
CSS & Layouts Quiz

CSS Box Model & Stacking Context

Master the visual formatting model, margin collapsing, and the mechanics of the CSS stacking context.

Question 1 of 100%

Child A (z-index: 999) resides inside Parent A (z-index: 1). Child B (z-index: 2) resides inside Parent B (z-index: 3). If both parents are relative positioned siblings, how do the children render?