CSS in depth II: layout and stacking
Explain layout algorithms and stacking so any layout bug can be diagnosed.
- WEB.09.01Formatting contexts and margin collapsingCoreMid-level10 min
- WEB.09.02Positioning and containing blocksCoreMid-level10 min
- WEB.09.03Stacking contexts and z-indexCoreMid-level10 min
- WEB.09.04Flexbox and Grid algorithms in depthMid-levelBeing written
- WEB.09.05Overflow, scrolling and containmentCoreMid-level10 min
Interview questions in this module
- What is a stacking context and what creates one?
- Why doesn't my
z-indexwork? - What is a block formatting context and how do you create one?
- Why does a flex item overflow its container with long text?
- What does
position: stickyneed to work? - Explain margin collapsing.