~/talk

Modern CSS Layout

Talkat SmashingConf Freiburg 2022 · 2022-09-05..09-07· [css, web-platform]
slides:none on file

Overview of concrete techniques and what actually works now: use one-line aspect-ratio plus object-fit to avoid padding hacks, build responsive grids with grid auto-fill + minmax then improve them with container queries (Chrome stable, Safari TP, polyfill available) to switch columns or change card direction, size text with container units so cards scale to their container, align nested items with subgrid, and use :has for parent-aware tweaks. Demos show these patterns functioning today though support is still partial across browsers.

AI-written summary · about

  1. 0:00Introduction to modern CSS
  2. 1:44Evolution of CSS layout
  3. 3:13Intrinsic web design explained
  4. 5:26Flexbox vs Grid for layouts
  5. 9:10Aspect ratio and object fit
  6. 14:05Min, max and clamp functions
  7. 18:45Fluid typography with clamp
  8. 20:09Responsive grid systems
  9. 24:08Container queries introduction
  10. 28:24Container units and responsive cards
  11. 34:12Subgrid and parent selector
  12. 37:34Odd number grid item styling
  13. 40:31Browser support and future features
  14. 41:02Q&A session
~/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.