~/talk

Fixing your layout headaches

Talkat NDC Oslo 2023 · 2023-05-22..05-26· [css, web-platform]
slides:none on file

Covers two concrete fixes: make a wrapper and give it position: relative so an absolutely positioned child centers with top:50% left:50% transform:translate(-50%,-50%) and stays inside that containing block; beware that a fixed element becomes anchored to the viewport unless a transformed ancestor exists, so move the fixed element out of any element with a transform to restore expected behavior; remember z-index is scoped by the stacking context — remove or move elements (or create a new stacking context around main) to keep overlays above or below other sections.

AI-written summary · about

  1. 0:00Introduction
  2. 0:37CSS for JavaScript
  3. 1:47Layout modes
  4. 2:10Position
  5. 2:26Position Relative
  6. 4:17Position Fixed
  7. 5:52Containing Block
  8. 6:43Absolute Block
  9. 10:22Stacking context
  10. 10:59Stacking context headaches
  11. 13:03Stacking context example
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.