New tools for art direction on the web

  • CSS grid,
  • variable fonts, and
  • service workers.
section {
display: grid;
grid-column-gap: 2em;
grid-template-columns: 2em repeat(5, 1fr) 2em;
}
section > p {
grid-column: 1/7;
}
section > p:nth-of-type(even) {
grid-column: 2/8;
}
Staggered grid.
section > figure {
display: grid;
grid-column-gap: 2em;
grid-template-columns: 2em repeat(5, 1fr) 2em;
}
section > figure.landscape > img {
grid-column: 1/5;
}
section > figure.landscape > figcaption {
grid-column: 5/8;
}
section > figure.portrait > img {
grid-column: 1/4;
}
section > figure.portrait > figcaption {
grid-column: 4/8;
}

--

--

--

A web developer and author living and working in Brighton, England. Everything I post on Medium is a copy — the originals are on my own website, adactio.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Why is the mouse cursor tilted 45 °?

Surviving career glitch: Growing up to be a value-driven designer

A person with hat looking at the crossroads, the image has a glitch effect.

4 things I learnt while designing for a crypto wallet.

Was this all worth it?

Buying a Metro Ticket in Paris — a UX Case Study

Weather channel case study 2

New design: Linnea Bookshelf

Smoke Simulation: Heat and Smoke Extraction for Building Design

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jeremy Keith

Jeremy Keith

A web developer and author living and working in Brighton, England. Everything I post on Medium is a copy — the originals are on my own website, adactio.com

More from Medium

Max Bill — Zum 80. Geburtstag — A Interactive Composition using P5.j

Creative Coding with P5.js

Building Lego brick effect generator with Svelte

Why use Gatsby?

why us gatsby. La Small Agency - Web Agency