web/
Browsers, HTML and CSS, HTTP, frameworks and APIs.
3 results
web/stacking-contexts-why-z-index-9999-can-still-lose-to-z-index-2.md
Stacking contexts: why z-index: 9999 can still lose to z-index: 2
You give a dropdown z-index: 9999 and it still hides behind a box that only says 2. The number is not too small: browsers sort layers in…
web/flexbox-how-a-row-of-boxes-decides-who-gets-the-leftover-space.md
Flexbox: how a row of boxes decides who gets the leftover space
Put three boxes in a row and the browser decides, by a short fixed recipe, who gets the extra room and who gives some up. Learn the three…
web/why-your-200px-box-is-250px-wide-the-css-box-model.md
Why your 200px box is 250px wide: the CSS box model
Every element on a web page is a box made of four layers: content, padding, border and margin. By default, CSS width measures only the…