browse/
7 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/viewport-and-media-queries-why-a-page-looks-tiny-on-a-phone-and-how-it.md
Viewport and media queries: why a page looks tiny on a phone, and how it rearranges itself
Why does a page look like a tiny copy of the desktop version on a phone, and how does the same page rearrange itself for a small screen?…
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/css-specificity-why-your-style-is-ignored.md
CSS specificity: why your style is ignored
You write a style, reload the page, and the text is still the old colour. Nothing is broken: another rule is winning, and CSS decides with…
web/why-is-my-css-ignored-specificity-scored-with-three-numbers.md
Why is my CSS ignored? Specificity, scored with three numbers
You write `p { color: red; }`, reload, and the text stays blue. The rule is fine: two rules are competing, and yours lost the contest. The…
mobile/native-web-or-cross-platform-how-apps-get-from-your-code-to-a-phone.md
Native, web or cross-platform? How apps get from your code to a phone
Every app idea hits the same fork in the road. Build it native in Swift for iPhone and Kotlin for Android, build it for the web with HTML…
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…