I’m finding it hard to contain my excitement about CSS Grid. I really do think that it offers us the best chance of making our websites better at communicating to our audiences.
Art Directingfor the Webby Andy ClarkeFive minutes with CSS Template Areas@malarkey
View Slide
Art Directingfor the Web
2 34 5
body {display: grid;grid-column-gap : 2vw;grid-template-columns: repeat(5, 1fr); }
…………
[role="banner"] { grid-area: banner; }.title { grid-area: title; }main { grid-area: main; }aside { grid-area: aside; }.fig-1 { grid-area: fig-1; }.fig-2 { grid-area: fig-2; }
body {grid-template-rows: repeat(3, auto); }
body {grid-template-areas:“. . . . ."". . . . ."". . . . ."; }
body {grid-template-areas:“. aside . fig-2 fig-2""title title banner banner banner""fig-1 main banner banner banner"; }
body {grid-template-columns: 50px repeat(2, 1fr); }@media screen and (min-width : 64em) {body {grid-template-columns: repeat(5, 1fr); }}
body {grid-template-areas: […]; }@media screen and (min-width : 64em) {body {grid-template-areas: […]; }}
AvailableSeptember ’18stuffandnonsense.co.uk/books@malarkey