contain: layout stops the escape
Level 3 of 9Your goal
Stop the child's 30px top margin from escaping its parent. The grey .parent should start at the top of the stage (y = 0), with the child 30px inside it (y = 30). Use contain: layout.
Must use
containNot allowed
displayoverflowpaddingborderElements
Hover one to find it on the stage. Click it, or put your cursor inside its CSS rule, to focus on just that element.
target content boxtarget outer edge (green = matched, red = not yet)your element (hovered or focused)
Feedback updates as you type, and your CSS is saved in this browser. Exact target numbers are in the Target panel.