~/talk

Quickly Create a Classic Layout with CSS Grid

TalkinFrenchat Devoxx France 2021 · 2021-09-29..10-01· [css, web-performance]
slides:none on file

A live demo of building a classic header/nav/main/sidebar/footer layout using only CSS Grid. It shows using display:grid, grid-gap, grid-template-rows/columns with minmax() and fr units, then switching to a three-column desktop layout via media queries and grid-template-areas; examples compare an article at 1fr vs sidebars at 1fr each or main at 2fr, requiring no HTML changes and working in modern browsers (with older prefix fallbacks).

AI-written summary · about

  1. 0:00Introduction to CSS Grid
  2. 1:06Basic grid creation
  3. 3:11Column and row definition
  4. 4:41Mobile layout with gap
  5. 5:02Wide-screen layout
  6. 7:34Auto element placement
  7. 8:15Grid template areas
  8. 10:02Template areas customization
  9. 12:12Summary and tips
  10. 12:55Q&A
~/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.