~/talk

Smart Layout Patterns with Modern CSS

Talkat SmashingConf New York 2024 · 2024-10-07..10-10· [css, web-performance]
slides:none on file

Shows practical, reproducible patterns: use container queries (now ~90%+ supported) to react to a component’s inline-size, name containers and use container type inline-size to convert grid-autofit breakpoints into reliable rules, and combine calc with ch units so typography-aware columns adapt. Demonstrates an adaptable image and an overflow horizontal grid that misbehaved until resolved with style queries toggling custom properties (experimental in recent Chrome/Safari), proving the patterns work in real demos.

AI-written summary · about

  1. 0:00Modern CSS landscape
  2. 1:26Journey to container queries
  3. 2:40Container query fundamentals
  4. 4:26Overcoming initial adoption
  5. 5:53Intrinsic layout limitations
  6. 8:31Rethinking container queries
  7. 10:37Viewport units trick
  8. 12:14Logical properties and math
  9. 14:22Grid and subgrid integration
  10. 17:01Naming containers
  11. 20:58Advanced style queries
  12. 25:18Complex layout solutions
  13. 28:24Practical style query use
  14. 32:12Future CSS possibilities
  15. 35:58Q&A and closing thoughts
~/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.